create sequence SEQ_NAME start with 1;
Sequence created.
SQL> create or replace trigger TRIGG_NAME
2 before insert on TABLE_NAME
3 for each row
4 begin
5 select SEQ_NAME.nextval
6 into :new.COLUMN
7 from dual;
8 end;
9 /
Trigger created.
Regards,
Moorthy. G
No comments:
Post a Comment