sql去重 删除id比较的的
Posted 钗的php生涯
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sql去重 删除id比较的的相关的知识,希望对你有一定的参考价值。
SELECT * from * where name in (select name from (select name from * group by name having count(name)>1)a) and id not in (select id from(select min(id) as id from * group by name having count(name)>1)b) and community=117 and card_num>80000 ORDER BY `*`.`card_num` ASC
以上是关于sql去重 删除id比较的的的主要内容,如果未能解决你的问题,请参考以下文章