1 select t.table_name,cm.comments, c.COLUMN_NAME,ccm.comments 2 from user_tables t 3 left join user_tab_columns c on c.TABLE_NAME = t.table_name 4 left join user_tab_comments cm on cm.table_name=t.table_name 5 left join user_col_comments ccm on ccm.table_name=c.TABLE_NAME and ccm.column_name=c.COLUMN_NAME 6 order by t.table_name asc ,c.COLUMN_NAME
时间: 2024-10-23 08:50:57