先把表分析一下
analyze table TABLE_NAME compute statistics;select NUM_ROWS from USER_tables where table_name='TABLE_NAME';

解决方案 »

  1.   

    select NUM_ROWS from USER_tables where table_name='testTable'查询出用户表中的行数
    select NUM_ROWS from dba_tables where table_name='testTable'查询出所有表中的记录行数,包括系统表
      

  2.   

    没有,必须做表分析,如果想知道某张表的记录数,不如直接select呢
      

  3.   

    直接select count(1) from table_name吧,做表分析也很慢的,如果不做表分析select NUM_ROWS from USER_tables where table_name='TABLE_NAME';得到的又不是最新的值