select count(*)  与select count(id) 区别,

1.速度差不了多少,全表扫,,count(id)它会对id进行非空判断。。 所以时间与count(*)差不多

 

select * from table where 1=1 ;

 

 

select * from table where 1;

相关文章: