Re: DB2-style INS/UPD/DEL RETURNING

Поиск
Список
Период
Сортировка
От Jonah H. Harris
Тема Re: DB2-style INS/UPD/DEL RETURNING
Дата
Msg-id 36e682920603131402j3477ff26ye6fabd13104610c@mail.gmail.com
обсуждение исходный текст
Ответ на Re: DB2-style INS/UPD/DEL RETURNING  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 3/13/06, Tom Lane <tgl@sss.pgh.pa.us> wrote:
Also, is the front SELECT allowed to have its own WHERE, or is it
constrained to return exactly one row per inserted/updated/deleted row?
If it can have a WHERE then there's a syntactic ambiguity in
        SELECT ... FROM NEW TABLE UPDATE ... WHERE ...

Yes, I believe it supports SELECT .. FROM NEW TABLE (UPDATE .. WHERE ..) WHERE

IBM's paper, "Returning Modified Rows--SELECT Statements with Side Effects" is here:
 http://www.isys.ucl.ac.be/vldb04/eProceedings/contents/pdf/IND1P1.PDF

I'll look up more.

--
Jonah H. Harris, Database Internals Architect
EnterpriseDB Corporation
732.331.1324

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: DB2-style INS/UPD/DEL RETURNING
Следующее
От: "Guillaume Smet"
Дата:
Сообщение: log_duration and log_statement