how control update rows - Mailing list pgsql-sql

From Sabin Coanda
Subject how control update rows
Date
Msg-id iie22c$1t3u$1@news.hub.org
Whole thread Raw
Responses Re: how control update rows  (Pavel Stehule <pavel.stehule@gmail.com>)
List 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 by date:

Previous
From: "Sabin Coanda"
Date:
Subject: out of shared memory - find temporary tables
Next
From: Pavel Stehule
Date:
Subject: Re: how control update rows