SELECT C.TABLE_NAME,NUM_ROWS
,(select COMMENTS from user_tab_comments WHERE TABLE_NAME=C.TABLE_NAME) AS TABLE_COMMENTS
,COLUMN_NAME,D.COMMENTS AS COLUMN_COMMENTS
FROM user_tables C ,user_col_comments D WHERE C.NUM_ROWS>0 AND C.TABLE_NAME=D.TABLE_NAME
时间: 2024-11-16 18:50:03