Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: DBA_TABLES.NUMROWS not equal Count(*) ... Why?
dba_tables.num_rows is just the count that was recorded the last time stats were gathered (e.g. with dbms_stats.gather_schema_stats or analyze table). You can find the date & time this happened last by querying the dba_tables.last_analyzed column. "SELECT COUNT(*)" peforms a full scan of the table to determine the current number of rows.
Privileged/Confidential Information may be contained in this message or attachments hereto. Please advise immediately if you or your employer do not consent to Internet email for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of this company shall be understood as neither given nor endorsed by it.
-- http://www.freelists.org/webpage/oracle-lReceived on Thu Feb 16 2006 - 15:43:15 CST
![]() |
![]() |