SELECT a.table_name , b.comments , c.num_cols , a.num_rows -- 통계정보 건수 -- , TO_NUMBER( -- dbms_xmlgen.getxmltype('SELECT COUNT(*) c FROM ' || a.table_name).Extract('//text()') -- ) num_rows2 -- 실제측정 건수 FROM user_tables a , user_tab_comments b , (SELECT table_name , COUNT(*) num_cols FROM user_tab_columns GROUP BY table_name ) c WHERE a.table_name = b.table_name AND a.table_name = c.table_name ORDER BY a.table_name ;