DB2中的序列
DB2中的序列1、创建方法与oracle相同:www.zzzyk.comCREATE SEQUENCE "KGL"."rbc_repid" AS BIGINTMINVALUE 1 MAXVALUE 999999999999999999START WITH 1 INCREMENT BY 1CACHE 20 CYCLE NO ORDER;2、数据库中加值:insert into kgl.rep_bcard_comsume(repid,purse_cardid) values(nextval for kgl.rbc_repid,'123')使用方式为:nextval for kgl.rbc_repid