摘要: select count(*) from table select count(1) from table 返回table表里面的记录总数 select count(1) from table的效率更好。 table表是一个数据表,假设表的行数为10行,以下同。 1:select 1 from table //有值 返回所有行的111111111 2:select coun... 阅读全文