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 -> insert a sequence into a table

insert a sequence into a table

From: CL <charlie_at_xenacom.co.nz>
Date: Tue, 29 Jun 1999 12:22:11 +1200
Message-ID: <LaUd3.1299$Dl.38918@news.clear.net.nz>


hi there
I have a table as
CREATE TABLE tname(sn number(3));
and then I want to insert value from 1 to 500. I created a sequence sq and I can do this: INSERT INTO tname VALUES(sq.nextval);
the problem is how can I use WHERE clause to control the number of rows to be inserted? Regards
Charles Luo Received on Mon Jun 28 1999 - 19:22:11 CDT

Original text of this message

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