count(*) count(1) count(column)区别

count(*) 和count(1)的效果是一样的。在某些情况下效率不一样。也会统计包含null的记录。

count(column)会返回当前字段不为null的记录数。

猜你喜欢

转载自www.cnblogs.com/chenmz1995/p/10241944.html