在表中,一个列可能会包含多个重复值
方法1:
select distinct grade from student
方法2:
select grade from student group by grade
此两个语句可以查询学生表中有几个不同的成绩,去除重复的项
在表中,一个列可能会包含多个重复值
方法1:
select distinct grade from student
方法2:
select grade from student group by grade
此两个语句可以查询学生表中有几个不同的成绩,去除重复的项