delete from mytable
where rowid not in(select rowid from
( select max(rowid) rowid,emp,num,dept from mytable group by emp, num,dept)
);
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/12624982/viewspace-670724/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/12624982/viewspace-670724/