--查看当前用户的所有序列 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 2 where sequence_owner='WGB'; SEQUENCE_OWNER SEQUENCE_NAME ------------------------------ ------------------------------ WGB SEQ_FOR_TEST WGB SEQ_WGB_ADMIN WGB SEQ_WGB_COMMON WGB SEQ_WGB_COMMONS WGB SEQ_WGB_CONTACTOR WGB SEQ_WGB_FACES WGB SEQ_WGB_MEMBER WGB SEQ_WGB_MESSAGE WGB SEQ_WGB_MONEY_USER 已选择9行。 SQL> select count(*) from dba_sequences where sequence_owner='WGB'; COUNT(*) ---------- 9
注意事项:
1.必须以管理员身份登录;
2.sequence_owner必须为大写, 不管你的用户名是否大写。只有大写才能识别。
以上是小编为您精心准备的的内容,在的博客、问答、公众号、人物、课程等栏目也有的相关内容,欢迎继续使用右上角搜索按钮进行搜索select
, where
, 序列
, from
, owner
大写
oracle创建序列语句、oracle 删除序列语句、oracle 查询所有序列、oracle查询所有序列号、oracle分页查询语句,以便于您获取更多的相关知识。
时间: 2024-12-30 20:27:14