对于删除数据表中某个字段重复的内容,使用语法具体如下:
delete from 表名 where 自增字段名 not in(select bid from(select min(自增字段名) as bid from 表名 group by 字段名) as b);
具体例子如下:
delete from position where id not in(select bid from(select min(id) as bid from position group by name) as b);
position:表名;
id:自增字段名;
name:要处理的重复数据字段;