create sequence seq_表名
start with 1
increment by 1
no cycle
no cache;
使用时如下外形变一下:
select
seq_表名.nextval,列名,列名......from 表名
同一个数据库的表都可以调用
简单固定的语法, 一个db2自增序列搞定
create sequence seq_表名
start with 1
increment by 1
no cycle
no cache;
使用时如下外形变一下:
select
seq_表名.nextval,列名,列名......from 表名
同一个数据库的表都可以调用
简单固定的语法, 一个db2自增序列搞定