mysql查询重复字段的次数
时间:2021-07-15 01:07:52
收藏:0
阅读:24
Mysql查询某字段重复的数据
例如:查询user表中,姓名出现次数在一次以上的数据
select username ‘用户名‘,count(*) as counts from `user`
GROUP BY username HAVING counts > 1;

原文:https://www.cnblogs.com/LeToGoing/p/15013026.html
评论(0)