count(*)与count(列名)的区别

count(*)包括NULL,count(列名不包括NULL)

Select Cno 课程号, count(*) 选课人数, count(Grade)
	from SC
	Group by Cno

在这里插入图片描述

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/little_yuan20/article/details/108223620
今日推荐