Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: REPOST: Trigger won't allow use of a sequence
for sequences, you have to select from a table.
select mysequence.nextval into your_variable from dual
this should work
regards
NP
Lee Crampton <lee_at_avbrief.com> wrote in article
<2$--$$-$-%-$__$%_$@news.noc.cabal.int>...
> I have a trigger in which I want to say:
>
> mycolumn := mysequence.NEXTVAL;
>
> This results in a trigger compilation error (and that's all the help you
get
> ! ).
> I must be misssing something subtle (?).
>
> Any clues gratefully received.
> Thanks in advance.
> Lee
>
> ========= WAS CANCELLED BY =======:
> Path:
news.uni-stuttgart.de!uni-erlangen.de!news-nue1.dfn.de!news-lei1.dfn.de!news feed.freenet.de!news2.euro.net!uunet!ash.uu.net!sac.uu.net!lax.uu.net!news.n avix.net!u.n.a.c.4.n.c.3.l.l.e.r
![]() |
![]() |