SELECT DISTINCT name,age:去掉name字段重复的(需要先写去重的字段);如果想多个取出多个字段重复,需要用group by。
SELECT DISTINCT name,age
group by