Menu

[r3103]: / trunk / ch.sahits.codegen.test / fragments / OracleAutoGenKey.sql  Maximize  Restore  History

Download this file

16 lines (14 with data), 270 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
create table my_test (
id number,
my_test data varchar2(255)
);
create sequence test_seq
start with 1
increment by 1
nomaxvalue;
create trigger test_trigger
before insert on my_test
for each row
begin
select test_seq.nextval into :new.id from dual;
end;
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.