本文共 856 字,大约阅读时间需要 2 分钟。
注意事项:
--查看当前用户的所有序列 select SEQUENCE_OWNER,SEQUENCE_NAME from dba_sequences where sequence_owner='用户名'; --查询当前用户的序列总数 select count(*) from dba_sequences where sequence_owner='用户名'; --示例: select SEQUENCE_OWNER,SEQUENCE_NAME from dba_sequences where sequence_owner=’WGB; select count(*) from dba_sequences where sequence_owner=’ WGB’; SQL> select SEQUENCE_OWNER,SEQUENCE_NAME from dba_sequences where sequence_owner='CHES';SEQUENCE_OWNER SEQUENCE_NAME-------------------- ---------------------------CHES CHE_PACKAGE_SEQCHES CHE_PART_SEQCHES CHE_SCHEDULE_SEQCHES CHE_TYPE_SEQSQL> select count(*) from dba_sequences where sequence_owner='CHES'; COUNT(*) ---------- 4
转载于:https://blog.51cto.com/meiling/2068571