create trigger demo_trigger before insert on demo for each row
begin
select to_char(sysdate,'yyyymmddHHmmss') into:New.nm from dual;
end;
demo为一个表。nm为demo的主键。
begin
select to_char(sysdate,'yyyymmddHHmmss') into:New.nm from dual;
end;
demo为一个表。nm为demo的主键。