count(1),这是oracle数据库里面的

解决方案 »

  1.   

    count(1)?
    数据库有很多表的啊,一张张统计过去么?
      

  2.   

    select table_name, num_rows from dba_tables; (oracle)
      

  3.   

    oracle:select count(*) from T;
      

  4.   

    oracle:select count(*) from T;  同意楼上的写法!!!!!
      

  5.   

    num_rows from dba_tables当然不是很准确,只是是大概的
      

  6.   

    select count(*) from table;
    为了提高效率
    可以用select count(1) from table;
      

  7.   

    select 'select count(0) from ' || table_name || ';' from user_tables;