create table ttt (id number primary key ,name varchar2(20),age number(2)) create or replace trigger gger_tt before insert on ttt for each row when (new.id is null) begin select ttt_sequence.nextval into :new.id from dual; end;
时间: 2024-10-11 15:41:37