Re: update syntax - Mailing list pgsql-sql

From chester c young
Subject Re: update syntax
Date
Msg-id 20020127025907.1532.qmail@web12708.mail.yahoo.com
Whole thread Raw
In response to Re: update syntax  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: update syntax
List pgsql-sql
thanks, but how would this be done for the same table?

update table1 t1 set (c2, c3 ) = 
( select c2, c3 from table1 t2 where t1.c1 = t2.c1 and t1.oid < t2.oid
);

and, when tables are listed in the from clause, are they comma
separated?




__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com


pgsql-sql by date:

Previous
From: Brent Verner
Date:
Subject: Re: interval and timestamp change?
Next
From: Bruce Momjian
Date:
Subject: Re: update syntax