Re: UPDATE mentions the RETURNING * syntax but does not mention RETURNING * INTO ...

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: UPDATE mentions the RETURNING * syntax but does not mention RETURNING * INTO ...
Дата
Msg-id 1198351.1693861213@sss.pgh.pa.us
обсуждение исходный текст
Ответ на UPDATE mentions the RETURNING * syntax but does not mention RETURNING * INTO ...  (James Stuart <slim2k@privatejuris.org>)
Список pgsql-bugs
James Stuart <slim2k@privatejuris.org> writes:
> UPDATE mentions the RETURNING * syntax but does not mention RETURNING *
> INTO ...

> https://www.postgresql.org/docs/15/sql-update.html

That's because there is no such thing so far as the core SQL parser is
concerned (so if you try it from, say, psql, it won't work).

There is such syntax in plpgsql, and that's where it's documented:

https://www.postgresql.org/docs/current/plpgsql-statements.html#PLPGSQL-STATEMENTS-SQL-ONEROW

            regards, tom lane



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

Предыдущее
От: PG Bug reporting form
Дата:
Сообщение: BUG #18084: Count Mismatch Challenges During PostgreSQL Database Migration: Causes and Solutions
Следующее
От: David Rowley
Дата:
Сообщение: Re: BUG #18084: Count Mismatch Challenges During PostgreSQL Database Migration: Causes and Solutions