oracle 实现主键序列自增长数据入库

–创建序列

create sequence test_seq start with 1 increment by 1;

–根据序列自增插入数据到test表中

insert into test(pk_value) select test_sep.nextval from dual
    .
    .
    .
    .

猜你喜欢

转载自blog.csdn.net/x15270772831/article/details/82391427