新建一个测试表
1.Distinct
可查询出连接的字段的不重复值
select DISTINCT name from test
结果为
2.group by
可去除含连接字段相同的表中所有数据
select * from test GROUP BY name
结果为
可查询出连接的字段的不重复值
select DISTINCT name from test
结果为
可去除含连接字段相同的表中所有数据
select * from test GROUP BY name
结果为