一条SQL删除数据库中重复的记录(id重复); delete from table_name where table_name.rowid not in ( select max(rowid) from table_name group by id );