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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Problem with trigger/sqlca.sqlerrd[2]

Re: Problem with trigger/sqlca.sqlerrd[2]

From: Herod <herodt_at_gmail.com>
Date: 9 Mar 2006 18:02:38 -0800
Message-ID: <1141956158.200455.48440@e56g2000cwe.googlegroups.com>


I completely forgot about insert ... returning (Thanks asktom)

declare
l_id pls_integer;

begin
insert into parent( id, ... ) values ( my_parent_seq.nextval, ... ) returning ID into l_id;
dbms_output.put_line( 'the new row is ' || l_id ); end; Received on Thu Mar 09 2006 - 20:02:38 CST

Original text of this message

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