从数据库得到所有的表

zxm954712 2002-10-23 09:20:50
谁知道用什么可以看到这个数据库中所有的表.
...全文
27 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
zousky 2002-10-23
  • 打赏
  • 举报
回复
你这样仅仅只能看到该用户的下的所有表,有没有办法看到所有用户下的所有表?
black_snail 2002-10-23
  • 打赏
  • 举报
回复
哈哈,条条大路通罗马!

select SEGMENT_NAME from user_segments where segment_type='TABLE'

You can also fetch from DBA_SEGMENTS .
guorui_wh 2002-10-23
  • 打赏
  • 举报
回复
select OBJECT_NAME from user_objects where upper(OBJECT_TYPE)=upper('TABLE') ;
black_snail 2002-10-23
  • 打赏
  • 举报
回复
user_tables:->The tables which user owns
sys_tables:->The Tables which user can access
dba_tables:->All the tables in Database

Above Tables are from DICT View

BTW , You can do:
select * from tab to found out all the table and views which the user can access

17,377

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧