| От | Rainer Pruy |
|---|---|
| Тема | UPDATE...RETURNING col INTO var - what is returned? |
| Дата | |
| Msg-id | 4BFE99F7.9030207@acrys.com обсуждение исходный текст |
| Ответы |
Re: UPDATE...RETURNING col INTO var - what is returned?
|
| Список | pgsql-general |
Hi all, I just got quite confused on the exact semantics of "RETURNING expressions INTO target" with an update statement. And while trying to resolve failed to find an answer in the docs. Question was whether - in case "expression" is involving a column that is assigned by the update itself - the value returned is based on the "old" value or the "new" value". While I'm no back to assuming is has to be the "old" one, I did not find a reference to that fact with the docs. Where should I have looked? Or is it actually missing? Then, could one add this, e.g. to the description of RETURNING .. INTO (Executing a query with a single row result) just for clarification, to dispel doubts. Thanks Rainer
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера