SQL语句:delete from (select 1 from DRTEST_GRID,(select b.型号 as 型号,b.编号 as 编号,min(c.version) as version from (select 型号,编号,count(*) as count from DRTEST_GRID group by DRTEST_GRID.型号,DRTEST_GRID.编号 having count(*)>1)b,DRTEST_GRID cwhere b.型号=c.型号 and b.编号=c.编号 group by c.型号,c.编号)d where DRTEST_GRID.型号=d.型号 and DRTEST_GRID.编号=d.编号 and DRTEST_GRID.version=d.version )
请教大神们哪个地方错误,或者如何修改正确!!
50积分重赏!!!50积分重赏!!!50积分重赏!!!急急急!!