1.
建表student
id ,name, score
查询
查询李四的成绩按名称分组
select score from group by name having name=“”李四“”;
group by 分组
having 条件是组如果使用 ID的话就不对了(count等聚合函数,还有就是group by 后面的)
1.
建表student
id ,name, score
查询
查询李四的成绩按名称分组
select score from group by name having name=“”李四“”;
group by 分组
having 条件是组如果使用 ID的话就不对了(count等聚合函数,还有就是group by 后面的)