2015-01-14 54 views
1

以防萬一問題不夠清楚。Oracle在哪裏存儲表註釋?

我有東西評論這樣的大多數表:

COMMENT ON TABLE owner.employee IS 'Stores the blabla'; 

而且將是很好看的表的意見(有就像2K表,而不是我的錯)

在我的數據庫搜索

回答

6

系統視圖ALL_TAB_COMMENTSUSER_TAB_COMMENTS包含表格註釋和ALL_COL_COMMENTSUSER_COL_COMMENTS有列註釋。

1

你可以試試下面的語句:

-- All tables inside my user 
select table_name, comments from user_tab_comments 

-- All tables for all users: 
select table_name, comments from all_tab_comments