how control update rows

Поиск
Список
Период
Сортировка
От Sabin Coanda
Тема how control update rows
Дата
Msg-id iie22c$1t3u$1@news.hub.org
обсуждение исходный текст
Ответы Re: how control update rows  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-sql
Hi there,

I'd like to control the rows which are updated. I found useful the option 
RETURNING in UPDATE syntaxt. Can I process the rows wich are returning there 
?

I think to something like that:

SELECT *
FROM (   UPDATE "T" SET       "C" = 1   WHERE "ID" > 100   RETURNING *
) x

TIA,
Sabin 




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

Предыдущее
От: "Sabin Coanda"
Дата:
Сообщение: out of shared memory - find temporary tables
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: how control update rows