在mysql,统计函数有 5 个:count、max、min、avg、sum
注意,count(*) 和 count(字段)
对于count(*)而言,只要有记录,就被纳入统计
对于count(字段),如果该字段的值为null,则不会纳入统计。
count(*)和count(字段)的区别
猜你喜欢
转载自blog.csdn.net/qq_37171379/article/details/88422601
今日推荐
周排行