Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> pb with sequence
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!
![]() |
![]() |