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

Started by A Balmost 18 years ago2 messagesgeneral
Jump to latest
#1A B
gentosaker@gmail.com

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?

#2A. Kretschmer
andreas.kretschmer@schollglas.com
In reply to: A B (#1)
Re: Insert into ... returning ... before 8.2?

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