Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: NEXTVAL in CREATE TABLE ?
Use it in BEFORE INSERT Trigger :
select seq.nextval into :new.FIELD from dual;
Mark wrote:
> What is the exact syntax to use NEXTVAL in a column in a CREATE TABLE
> statement ?
>
> I've tried DEFAULT NEXTVAL, and DEFAULT MY_ID.NEXTVAL, but neither seem to
> work.
>
> Mark
-- Best Regards, || Ñ óâà æåÃèåì, Oleg Dmitriev, || Îëåã Äìèòðèåâ,Received on Tue Apr 07 1998 - 00:00:00 CDT
![]() |
![]() |