1.建立序列:create SEQUENCE DCMS_subitem_id start with 1 increment by 1 MAXVALUE 99999999rem
2.程序获取的时候 : select DCMS_subitem_id.nextval from dual; 来获取最大值的下一个值。it