Re: Update Join ?

Поиск
Список
Период
Сортировка
От Adam Rich
Тема Re: Update Join ?
Дата
Msg-id 090001c89443$1a128480$4e378d80$@r@sbcglobal.net
обсуждение исходный текст
Ответ на Update Join ?  (kevin kempter <kevin@kevinkempterllc.com>)
Список pgsql-general
>> Does Postgres allow updates based on the context of a sub-query,
something like the sample below ?

Yes,

Update real_tab
set real_tab.data_desc = temp_tab.data_desc
From temp_tab
Where real_tab.keyID = temp_tab.keyID

(don't repeat your updated table in the "from" list unless you
Mean to self-join)

http://www.postgresql.org/docs/8.3/interactive/sql-update.html



В списке pgsql-general по дате отправления:

Предыдущее
От: kevin kempter
Дата:
Сообщение: Update Join ?
Следующее
От: carty mc
Дата:
Сообщение: dblink ,dblink_exec not participating in a Transaction??