Oracle - Sequences

 

 

查看序列

--查询用户所有的序列
select * from user_sequences; -- 查询当前用户下的所有序列
select * from all_sequences; -- 查询当前用户下的所有序列
--获取序列的值
select T_WEB_SORT_SEQ_NO.nextval from dual;  -- 查询指定序列的下个值(查看后+1)
select T_WEB_SORT_SEQ_NO.currval from dual;  -- 查询指定序的当前值

 

posted @ 2019-11-21 14:02  HelloWorld102  阅读(155)  评论(0编辑  收藏  举报