oracle获取当前用户下所有的表名和表注释

1.select table_name from user


_tables;当前用户

select table_name from all



_tables;所有用户

select table_name from dba



_tables;包括系统表

select table_name from



where owner='用户名';/*用户名要大写*/

2.oracle获取当前用户下所有的表名和表注释

select a.table_name,b.comments

from user_tables a,user_tab_comments b

where a.table_name=b.table_name

order by table_name;


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章