查询数据库中的重复数据

1.SELECT * FROM “表名” GROUP BY billcode HAVING COUNT()>1*
2.select billcode from (select * from “表名” GROUP BY billcode having count()>1) a group by “。。。” having count()>1

猜你喜欢

转载自blog.csdn.net/weixin_42446445/article/details/85208075