时间:2021-07-01 10:21:17 帮助过:14人阅读
--查看当前用户的所有序列
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_SEQ
CHES CHE_PART_SEQ
CHES CHE_SCHEDULE_SEQ
CHES CHE_TYPE_SEQ
SQL> select count(*) from dba_sequences where sequence_owner=‘CHES‘;
COUNT(*)
----------
4
Oracle查询所有序列
标签:查看 art rac sql name 示例 pack ack 注意事项