Thread: Insert into ... returning ... before 8.2?

Insert into ... returning ... before 8.2?

From
"A B"
Date:
What should I replace the command

INSERT INTO table (name) VALUES (value) RETURNING currval('my_id_seq')
into my_var;

with if I have to use version 8.1?

Re: Insert into ... returning ... before 8.2?

From
"A. Kretschmer"
Date:
am  Wed, dem 02.07.2008, um 11:58:19 +0200 mailte A B folgendes:
> What should I replace the command
>
> INSERT INTO table (name) VALUES (value) RETURNING currval('my_id_seq')
> into my_var;
>
> with if I have to use version 8.1?

select currval('my_id_seq');


Andreas
--
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA   http://wwwkeys.de.pgp.net