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 -> Re: %ROWTYPE and INSERT

Re: %ROWTYPE and INSERT

From: Dave Mausner <dmausner_at_brauntech.com>
Date: 1997/01/20
Message-ID: <5c0l4v$d40_005@news.psi.net>#1/1

In article <32e3382d.3937421_at_news.via.at>,

   dtr_at_leadingbits.via.at (Dieter Oberkofler) wrote:
>Unfortunately it is not possible to use the same %ROWTYPE
 variables
>for INSERT and UPDATE statements that affect all columns of a
table.

That's true, but you can do this, if you declared

	cursor C is select * from T;
	R C%rowtype;
then you may write:
	insert into T (select * from T) values ( ... )

Dave Mausner, Managing Consultant, Braun Technology Group, Chicago. Received on Mon Jan 20 1997 - 00:00:00 CST

Original text of this message

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