标签:group from mamicode 重复 inf 最新 where mic png
SELECT * FROM carregisterinfo a WHERE (a.plate) IN ( SELECT plate FROM carregisterinfo GROUP BY plate HAVING count(*) >= 1 ) AND id IN ( SELECT max(id) FROM carregisterinfo GROUP BY plate HAVING count(*) >= 1 )
原表数据如下:
标签:group from mamicode 重复 inf 最新 where mic png
原文地址:https://www.cnblogs.com/still-smile/p/14265308.html