본문 바로가기

오라클DBMS/관리(Admin)

[ORACLE] 전체 테이블당 건수 조회

select
 table_name,
 to_number(
 extractvalue(
 xmltype(
 dbms_xmlgen.getxml('select count(*) c from '||table_name))
 ,'/ROWSET/ROW/C')) count
 from user_tables;