Order of Operations for Update Command

Поиск
Список
Период
Сортировка
От simonwhite@dciphercomputing.com
Тема Order of Operations for Update Command
Дата
Msg-id 20160825152726.15674.18873@wrigleys.postgresql.org
обсуждение исходный текст
Ответы Re: Order of Operations for Update Command  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-docs
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/9.5/static/sql-update.html
Description:

Does the Update command update the columns in the order they are listed? Can
an updated column's new value be used in the value calculation for a
subsequent column?
i.e. update mytable set qty=qty+5,price=price*1.1,subtotal=qty*price
Will the subtotal be calculated based on the old column values or the new
column values?

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Incorrect 'literal' tags
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Order of Operations for Update Command