'Oracle'에 해당되는 글 1건

  1. 2008.04.22 현재 데이터 베이스의 모든 건수를 알고 싶을 때.

EXEC DBMS_STATS.gather_schema_stats(USER, cascade=> TRUE);

SELECT table_name, num_rows FROM user_tables;
현재 User의 모든 테이블에 대한 통계정보를 조사하고 나면 num_rows에 값이 들어가있게 됨.

Posted by g11000011
: