Re: can't get UPDATE ... RETURNING ... INTO ... to compile successfully

From: Lew <noone(at)lwsc(dot)ehost-services(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: can't get UPDATE ... RETURNING ... INTO ... to compile successfully
Date: 2008-08-18 11:23:59
Message-ID: ZIydnVKXfotPxjTVnZ2dnUVZ_rWdnZ2d@comcast.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dale wrote:
> Hi,
> I've got some code which postgres 8.3.3 won't accept. Postgres
> doesn't like the INTO clause on RETURNING INTO and I've tried
> following the documentation.
>
> UPDATE "EntityRelation" SET "Status" = inStatus, "Modified" =
> Session_TimeStamp(), "ModifiedBy" = UserID() WHERE ("RelationID" =
> inRelationID) AND ("EntityID" = inEnityID) AND IsEqual(inRelatedID,
> "RelatedID") RETURNING "Default" INTO oldDefault;
>
> Does anyone have any ideas if the INTO clause actually works at all
> for an UPDATE statement?

<http://www.postgresql.org/docs/8.3/static/sql-update.html>
does not list an INTO clause for UPDATE, and when you think about it, indeed
such a clause doesn't make sense.

--
Lew

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Sergey Konoplev 2008-08-18 11:31:53 Re: Changing between ORDER BY DESC and ORDER BY ASC
Previous Message Alexi Gen 2008-08-18 10:53:32 Cluster Up-time.