Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: SQL Server Autonumber equivalent in Oracle 8i
I also got this (rather rude) response from an email sent directly to me
What's wrong with reading
a) the Oracle Sql reference manual
b) the Oracle Application Developers Guide
Also *please* do not crosspost to all Oracle newsgroups.
As to your question
create or replace trigger <triggername> before insert on <yourtable> before
each row
begin
select <sequence>.nextval
into :new.<keycolumn>
from dual;
end;
/
which you could have easily found consulting the docs.
Regards,
Sybrand Bakker, Oracle DBA Received on Mon Nov 20 2000 - 13:11:51 CST
![]() |
![]() |