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

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

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

select * from table where 1=1 ;

select * from table where 1;

原文地址:https://www.cnblogs.com/gzhbk/p/13644508.html