Oracle查询序列
Oracle查询某一用户下的序列,其中user_name是你当前数据库的登录名
SQL> select SEQUENCE_OWNER,SEQUENCE_NAME from dba_sequences where sequence_owner='user_name';
SEQUENCE_OWNER SEQUENCE_NAME
-------------------- ----------------------------------------------------------------------
C##SCOTT DEPT_SEQ
C##SCOTT EMP_SEQ
C##SCOTT HIBERNATE_SEQUENCE
C##SCOTT STU2_SEQ
C##SCOTT STUCOURSE_SEQ
C##SCOTT STU_SEQ
已选择 6 行。
也可以直接使用聚合函数计算
SQL> select COUNT(*) from dba_sequences where sequence_owner='user_name';
COUNT(*)
----------
6
相关推荐
景泽元的编程 2020-03-04
airfling 2020-02-22
Streamoutput 2020-02-09
LuoXinLoves 2019-11-03
oraclemch 2019-07-05
zhbvictor 2014-05-01
大伟爱自由 2013-10-22
wo0o0o0o0 2018-10-28
CharlesLiu 2018-10-23
chenhuizhuchz 2018-10-15
zhbvictor 2018-03-01
cream 2018-02-28
鲁氏汤包王 2017-06-21
FCBarceIona 2017-05-02
windsky 2016-09-06
DrLecter 2016-06-20
XMM00 2016-03-29
BiPerler 2016-02-01
tangh 2015-08-30