当插入时,自动生成GUID作为主键,代码如下:
CREATE OR REPLACE TRIGGER tr_company
before 
insert on company
  
for each row
begin
select sys_guid() into :new.COMPANYID from dual;
end;

相关文章:

  • 2022-01-19
  • 2021-11-01
  • 2021-08-23
  • 2022-02-03
  • 2021-07-30
  • 2021-11-01
  • 2022-01-20
  • 2021-09-01
猜你喜欢
  • 2021-06-27
  • 2022-02-01
  • 2021-12-15
  • 2021-11-01
  • 2021-11-01
  • 2021-12-05
  • 2022-12-23
相关资源
相似解决方案