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 -> PL/SQL How do you INSERT a %ROWTYPE variable

PL/SQL How do you INSERT a %ROWTYPE variable

From: Andy Harrah <aharrah_at_springrock.com>
Date: 1997/03/28
Message-ID: <333c14ac.3081963@news.erols.com>#1/1

I wish to do the following:

v_foo foo%ROWTYPE;

select * into v_foo from foo where foo.foo_id = 123

v_foo.foo_id = [get new id]
v_foo.lname = 'Harrah'

INSERT into foo (*) values (v_foo)

Of course the INSERT line does not work. How can I insert a %ROWTYPE variable without listing all of the columns and elements?

Thanks,
Andy
aharrah_at_springrock.com Received on Fri Mar 28 1997 - 00:00:00 CST

Original text of this message

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