From: | "Dale Harris" <itsupport(at)jonkers(dot)com(dot)au> |
---|---|
To: | <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: cannot use result of (insert .. returning) |
Date: | 2008-08-14 07:18:09 |
Message-ID: | 001001c8fddd$e95487d0$bbfd9770$@com.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
I've found my solution as in the help file under "RETURNING INTO". It would
be nice if this was referenced on the INSERT documentation.
Dale
From: pgsql-general-owner(at)postgresql(dot)org
Sent: Thursday, 14 August 2008 15:32
To: pgsql-general(at)postgresql(dot)org
Subject: [GENERAL] cannot use result of (insert .. returning)
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.
From | Date | Subject | |
---|---|---|---|
Next Message | Pavel Stehule | 2008-08-14 07:59:17 | Re: cannot use result of (insert .. returning) |
Previous Message | MuraliPD@GMail | 2008-08-14 06:57:40 | Re: Need help returning record set from a dynamic sql query |