Re: [GENERAL] Dynamic update - Mailing list pgsql-general

From Aaron J. Seigo
Subject Re: [GENERAL] Dynamic update
Date
Msg-id 99110313511306.00702@stilborne
Whole thread Raw
In response to Re: [GENERAL] Dynamic update  (Alain TESIO <alain_tesio@yahoo.com>)
Responses Re: [GENERAL] Dynamic update  (Simon Drabble <simon@eskimo.com>)
List pgsql-general
hi...

just tested this:

> UPDATE member SET votes count(votes) FROM ballot WHERE id = 1 ;
>
> (I can't test right now but I don't see why this wouldn't work ...)

genisys=> UPDATE members SET phone1 = deadmem.phone1 FROM deadmem WHERE deadmem.id_num = 7356 and
genisys-> members.id_num = 100;
UPDATE 1

with an '=' and defining which field belongs to which table it works! =)  kudos
to alain...

--
Aaron J. Seigo
Sys Admin

pgsql-general by date:

Previous
From: "Chris Teli"
Date:
Subject: Real Time Applications
Next
From: Simon Drabble
Date:
Subject: Re: [GENERAL] Dynamic update