1。select distinct * from table2。将数据集保存到临时表3。delete from table4。从临时表把数据导回来
即然不想有重复项就建个主键不就行了或者加个自动编号列id,然后com.execute"deletefrommsgwhereidnotin(selectmin(id)asidfrommsggroupbytit)"