获取物化视图的评论

get the comment of the materialized view

晚上好,

这是table还是select我需要获取物化视图的评论

评论是这样加的:

comment on MATERIALIZED VIEW TEST33 is 'hello';

试试:

SELECT t.table_name, t.comments FROM USER_TAB_COMMENTS t WHERE TABLE_NAME = 'TEST33';


SELECT * FROM USER_MVIEWS

我找不到存储此信息的 table。

非常感谢你的帮助。

非常感谢。

获取对实体化视图的评论:USER_MVIEW_COMMENTS,对 MV 中列的评论:USER_COL_COMMENTS

--Comments on Materialized view
SQL>SELECT * FROM user_mview_comments
WHERE mview_name='CAL_MONTH_SALES_MV'

MVIEW_NAME           COMMENTS
-------------------- --------------------
CAL_MONTH_SALES_MV   Monthly total sales




--comments on columns in MV
  SQL>SELECT * FROM user_col_comments
  WHERE table_name='CAL_MONTH_SALES_MV'

TABLE_NAME           COLUMN_NAME          COMMENTS             ORIGIN_CON_ID
-------------------- -------------------- -------------------- -------------
CAL_MONTH_SALES_MV   CALENDAR_MONTH_DESC  Monthly Calender                 3
CAL_MONTH_SALES_MV   DOLLARS              Monthly Total                    3

链接:

USER_COL_COMMENTS

USER_MVIEW_COMMENTS

p.s:-在 19c

上测试