标签:
1、去重
SELECT * FROM my where id in(SELECT MAX(id) from my GROUP BY id,iid,pid)//取 id,iid,pid重复的最大值
常用的SQL 总结
原文地址:http://www.cnblogs.com/chenmfly/p/4583653.html