RadarURL
데이터베이스

Oracle(오라클) 테이블 목록과 각 테이블별 레코드 건수 구하기

by JaeSoo posted Oct 02, 2014
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄

SELECT table_name
     , num_rows -- 통계정보 건수
     , TO_NUMBER(
       dbms_xmlgen.getxmltype('SELECT COUNT(*) c FROM ' || table_name).Extract('//text()')
       ) num_rows2 -- 실제측정 건수
  FROM user_tables
;
 


출처 : http://www.gurubee.net/article/55486


Articles

22 23 24 25 26 27 28 29 30 31