Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Sequence/Identity
"Ernest Morariu" <ernest_at_gesora.com> wrote in message news:<cd5kph$fnm$1_at_carabinieri.cs.interbusiness.it>...
> Hi All!
>
> It is possible in Oracle 8i to define a column(called ID) in a table as been
> value-autogenerated or Identity(as in SqlServer)?
>
> Is there any alternative to the sequences for generating the new IDs for my
> tables ?
>
> Ernest
Ernest, create a before insert trigger on the table and insert the sequence_nam.nextval there.
You can find an article on this topic at the cooperative FAQ hosted by Jonathan Lewis at http://www.jlcomp.demon.co.uk/faq
HTH -- Mark D Powell -- Received on Thu Jul 15 2004 - 10:15:13 CDT
![]() |
![]() |