Loading

Oracle查询和修改序列

查询序列

select * from user_sequences where sequence_name like '%XXXXXX%'

修改序列

  1. 先修改序列步长
ALTER SEQUENCE seq_t_test INCREMENT BY n;
  1. 然后做一次将序列更新至新的点
SELECT
	seq_t_test.nextval
FROM
	dual;
  1. 最后将步长改回来
ALTER SEQUENCE seq_t_test INCREMENT BY n;
posted @ 2021-04-15 20:06  LifeLogs  阅读(304)  评论(0编辑  收藏  举报