一条SQL语句实现查询成绩-60、60~80、+80的人数的方法

总结一下学到的一个SQL方法。下面我创建一个数据表: SELECT * FROM students; 可以看到数据表中存在六条数据,如果使用传统的查询方法,我们需要三条SQL语句,分别是: select count(*) from students where score<60; select count(*) from students where score>80; select count(
相关文章
相关标签/搜索