标签:from sql 字段 ble 联合 group rom mysq 数据
MySQL字段联合去重sql
例如数据
id,name1,name2
1 a x
2 a y
3 b x
4 a y
5 a x
联合去重name1,name2的结果为
id,name1,name2
1 a x
2 a y
3 b x
的SQL为
select * from table group by name1,name2;
标签:from sql 字段 ble 联合 group rom mysq 数据
原文地址:http://www.cnblogs.com/xiaozong/p/5992290.html