cannot use result of (insert .. returning)

From: "Dale Harris" <itsupport(at)jonkers(dot)com(dot)au>
To: <pgsql-general(at)postgresql(dot)org>
Subject: cannot use result of (insert .. returning)
Date: 2008-08-14 05:32:11
Message-ID: 000201c8fdcf$1aa4e190$4feea4b0$@com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

I'm having the same issues as dvs had in message thread
http://archives.postgresql.org/pgsql-general/2008-05/msg01117.php as I want
to be able to use the result from an INSERT INTO table(...) VALUES(...)
RETURNING new_row_ID.

I would ideally like to be able to capture the RETURNING value into a
variable to use immediately. Does anyone have a solution?

Dale.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Craig Ringer 2008-08-14 06:04:20 Re: mirroring table
Previous Message Joost Kraaijeveld 2008-08-14 05:26:16 Re: In-place conversion of type bool