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 -> pb with sequence

pb with sequence

From: Romuald Jouffrey <Romuald.Jouffrey_at_imag.fr>
Date: 1997/04/24
Message-ID: <335f12fb.85887029@129.88.30.1>#1/1

Hi everybody,

I'm a newbie with PL/SQL and Oracle. I use Oracle 7.3 on a Windows NT workstation. I try to use a sequence for a primary key. I thought it was as simple as :
create sequence mysequence;

and then to use it to insert a new row:
insert into oneofmytable values (mysequence.NEXTVAL, x1, ..... xn);

oneofmytable is obviously already created and is empty ! But this doesn't work ! If anybody has any clue, thanks in advance!


Received on Thu Apr 24 1997 - 00:00:00 CDT

Original text of this message

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