数据去重
delete from xx where smokevehicleid not in (
select t.max_id from
(select max(smokevehicleid) as max_id from xxx group by smokeno) as t
);
delete from xxx a where a.SmokeNo in (select SmokeNo from xxx where smokevehicleid not in (
select t.max_id from
(select max(smokevehicleid) as max_id from xxx group by smokeno) as t
))

浙公网安备 33010602011771号