删除旧
delete from a using mix_crm_contact as a,mix_crm_contact as b where a.id<b.id and a.`telphone_num` = b.`telphone_num`
删除新
delete from a using mix_crm_contact as a,mix_crm_contact as b where a.id>b.id and a.`telphone_num` = b.`telphone_num`
删除旧
delete from a using mix_crm_contact as a,mix_crm_contact as b where a.id<b.id and a.`telphone_num` = b.`telphone_num`
删除新
delete from a using mix_crm_contact as a,mix_crm_contact as b where a.id>b.id and a.`telphone_num` = b.`telphone_num`
distinct
本文主要给大家介绍了关于MySQL中查询、删除重复记录的方法,分享出来供大家参考学习,下面来看看详细的介绍:
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M