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

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

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

posted @ 2019-01-08 23:00  护花使者  Views(183)  Comments(0Edit  收藏  举报