Re: update syntax

Поиск
Список
Период
Сортировка
От chester c young
Тема Re: update syntax
Дата
Msg-id 20020127025907.1532.qmail@web12708.mail.yahoo.com
обсуждение исходный текст
Ответ на Re: update syntax  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: update syntax  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Brent Verner
Дата:
Сообщение: Re: interval and timestamp change?
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: update syntax