| От | PG Doc comments form |
|---|---|
| Тема | Data visibility for returning statement |
| Дата | |
| Msg-id | 174556568268.3018509.17516011309250353751@wrigleys.postgresql.org обсуждение |
| Ответы |
Re: Data visibility for returning statement
|
| Список | pgsql-docs |
The following documentation comment has been logged on the website: Page: https://www.postgresql.org/docs/17/dml-returning.html Description: Today I found a pretty special use-case for the "RETURNING" functionality, which I cannot find documentation for? If you have a statement as follows: UPDATE persons SET name = 'Bob' WHERE id = 4 RETURNING (SELECT name FROM persons WHERE id = 4) The returning data will be whatever the value was before the row was modified. This differs from if I were to "RETURNING name". I found this to be interesting and could possibly warrant some kind of explanation in the documentation? Best regards Robin
В списке pgsql-docs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера