比如有表 mytable, 字段 mobile有重复的数据,sql如下
delete from a using mytable as a,mytable as b where a.id>b.id and a.mobile = b.mobile;
这个我已经经过测试成功了, 所以我记录下.也给需要的人查询下
比如有表 mytable, 字段 mobile有重复的数据,sql如下
delete from a using mytable as a,mytable as b where a.id>b.id and a.mobile = b.mobile;
这个我已经经过测试成功了, 所以我记录下.也给需要的人查询下