如何自动建立oralce 数据库里 递增的id

时间:2016-12-27 08:29:00
【文件属性】:
文件名称:如何自动建立oralce 数据库里 递增的id
文件大小:314B
文件格式:TXT
更新时间:2016-12-27 08:29:00
oralce 数据库里 递增的id Create sequence IDC increment by 1 start with 1 minvalue 1; create or replace trigger tri_表名 before insert on 表名 for each row begin select IDC.nextval into :new.ID from dual; end tri_表名; /

网友评论