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;


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