标签:表示 最新 cad nbsp inf time car ddt min
SELECT * FROM
(SELECT addTime FROM motorcade.car_msg_info GROUP BY addTime HAVING COUNT(addTime) > 1)
AS b)
AND ID NOT IN (SELECT * FROM
(SELECT MIN(ID) FROM motorcade.car_msg_info GROUP BY addTime HAVING COUNT(addTime) > 1)
AS c)
MIN(ID)表示保留ID最小的一条 换成MAX可以保留最新的一条
addTime代表重复数据
标签:表示 最新 cad nbsp inf time car ddt min
原文地址:http://www.cnblogs.com/huhuixin/p/6038160.html