SELECT * FROM `表名1` WHERE 字段1 in(select sn from 表名1 group by 字段1 having count(*)>1)
SELECT sn ,count(*) as a FROM `表名` group by sn having a>1
2024-01-12 09:12:58
SELECT * FROM `表名1` WHERE 字段1 in(select sn from 表名1 group by 字段1 having count(*)>1)
SELECT sn ,count(*) as a FROM `表名` group by sn having a>1
下一篇:mysql 开启远程连接