oracle 怎样查询某用户下的所有表的表名
3个回答
2014-11-29 · 知道合伙人数码行家
关注
展开全部
select * from tab;
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
-bash-3.2$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Sat Nov 29 19:40:36 2014
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select table_name from user_tables where rownum<=3;
TABLE_NAME
------------------------------
ICOL$
CON$
UNDO$
SQL> conn clark/clark
Connected.
SQL> select table_name from user_tables where rownum<=3;
no rows selected
SQL>
user_tables 是查自己所有表
其他的还有 有足够权限就可以查
all_tables 全部表
dba_tables 全部表
SQL*Plus: Release 11.2.0.4.0 Production on Sat Nov 29 19:40:36 2014
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select table_name from user_tables where rownum<=3;
TABLE_NAME
------------------------------
ICOL$
CON$
UNDO$
SQL> conn clark/clark
Connected.
SQL> select table_name from user_tables where rownum<=3;
no rows selected
SQL>
user_tables 是查自己所有表
其他的还有 有足够权限就可以查
all_tables 全部表
dba_tables 全部表
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询