1、创建序列
create sequence sample_test start with 0;
2、获取序列中的下一个值
select sample_sequence.nextVal from dual;
3、删除序列
drop sequence seq_name;
参考资料:http://docs.aliyun.com/#/drds/best-practice/best_global_sequence
1、创建序列
create sequence sample_test start with 0;
2、获取序列中的下一个值
select sample_sequence.nextVal from dual;
3、删除序列
drop sequence seq_name;
参考资料:http://docs.aliyun.com/#/drds/best-practice/best_global_sequence