delete from 表名 a where rowid !=(select max(rowid) from 表名 b where a.ORDER_ID=b.ORDER_ID)
例:如果重复的数据表是:test_table
delete from test_table a where rowid !=(select max(rowid) from test_table b where a.ORDER_ID=b.ORDER_ID)
2023-01-25 08:16:41
delete from 表名 a where rowid !=(select max(rowid) from 表名 b where a.ORDER_ID=b.ORDER_ID)
例:如果重复的数据表是:test_table
delete from test_table a where rowid !=(select max(rowid) from test_table b where a.ORDER_ID=b.ORDER_ID)