`
feitu_jeff
  • 浏览: 42587 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

MYSQL 去除重复 记录

阅读更多
删除旧
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`
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics