count(*) 与count (字段名)的区别

count(*) 查出来的是:结果集的总条数

count(字段名) 查出来的是: 结果集中‘字段名’不为空的记录的总条数

原文地址:https://www.cnblogs.com/lucky9/p/6251707.html