Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: ROWID is IDENTITY?
Andrew Hardy (nobody_at_spam.from.news.AdvanticaTech.com) wrote:
: No, you are looking for a SEQUENCE which you make auto-incrementing for your
: column by creating a before insert row TRIGGER.
I agree except that you can use (something like)
insert into table1
select (mysequence.nextval from dual) as uniqueid,
value2, value3, value4
instead of a trigger. I think that this is faster than the trigger.
Greg Received on Thu Sep 27 2001 - 15:49:26 CDT