Re: [GENERAL] Dynamic update

From: "Aaron J(dot) Seigo" <aaron(at)gtv(dot)ca>
To: tesio(at)easynet(dot)fr, Alain TESIO <alain_tesio(at)yahoo(dot)com>, Simon Drabble <simon(at)eskimo(dot)com>, Postgres Group <pgsql-general(at)postgreSQL(dot)org>
Subject: Re: [GENERAL] Dynamic update
Date: 1999-11-03 20:48:43
Message-ID: 99110313511306.00702@stilborne
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Stuart Woolford 1999-11-03 20:54:51 indexed regex select optimisation missing?
Previous Message Aaron J. Seigo 1999-11-03 20:43:16 Re: [GENERAL] Dynamic update