select * from tablename group by name;如果是select * from tablename group by name,age;那么查询的是满足name和age都不重复的记录。