student表中数据如下:

需要找出name相同,score不同的数据,sql如下:
SELECT a.name,a.score from student a,student b where a.name = b.name and a.score != b.score GROUP BY a.name, a.score
结果如下:

student表中数据如下:

需要找出name相同,score不同的数据,sql如下:
SELECT a.name,a.score from student a,student b where a.name = b.name and a.score != b.score GROUP BY a.name, a.score
结果如下:


被折叠的 条评论
为什么被折叠?