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

Re: insert a sequence into a table

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Wed, 30 Jun 1999 11:45:50 +0100
Message-ID: <930739807.17061.0.nnrp-13.9e984b29@news.demon.co.uk>


I posted a solution to this type of problem on my website a couple of days ago
(under the heading: Dummy Data).

Appropriate for 8 with the object option No sequence needed, you could even
do the

    create table
    unrecoverable
    as

        ....

and create it with the data in place.

--

Jonathan Lewis
Yet another Oracle-related web site: www.jlcomp.demon.co.uk

CL wrote in message ...
>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 Wed Jun 30 1999 - 05:45:50 CDT

Original text of this message

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