当前位置: 代码迷 >> 综合 >> Oracle查询所有用户,查询某个用户下的表
  详细解决方案

Oracle查询所有用户,查询某个用户下的表

热度:107   发布时间:2023-09-20 01:35:53.0

 select * from all_all_tables,all_tables 表的信息显示不同

select * from all_tab_comments;       //查询所有用户下的所有表带注释的,可加入筛选条件,如where。。等

select * from all_tab_comments where owner='用户名‘ ;        //查询某个用户下的所有表,注意此处用户名要大写

select * from user_tab_comments;                  //查询本用户下的表

select 用户名.table_name from user_tables 用户名; //这个写法有错误

select * from dba_users;      //查询所有用户的信息详细信息

  相关解决方案