Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Getting the identity of the row just inserted

Getting the identity of the row just inserted

From: Einar Magnus Råberg <einarmr_at_tihlde.org>
Date: Thu, 15 Mar 2001 14:41:20 +0100
Message-ID: <3AB0C680.14D00D6D@tihlde.org>

Hi!

If I insert a row into a table

        INSERT INTO foobar VALUES(foocounter.nextval, 'Hi', 'You');

How do I get the primary key of the row I just inserted?

This primary key is needed to insert a row in another table.

-Einar Received on Thu Mar 15 2001 - 07:41:20 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US