MySQL字段联合去重sql例如数据id,name1,name21 a x2 a y3 b x4 a y5 a x联合去重name1,name2的结果为id,name1,name21 a x2 a y3 b x的SQL为select * from table group by name1,name2;