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 (
专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]
Copyright (C)ICode9.com, All Rights Reserved.
ICode9版权所有