Mysql查询某字段值重复的数据

标签:,
来源: 老季博客
日期: 2019-10-25
作者: 腾讯云/服务器VPS推荐评测/Vultr
阅读数: 51

查询user表中,user_name字段值重复的数据及重复次数

select user_name,count(*) as count from user group by user_name having count>1;

链接到文章: https://jiloc.com/46485.html

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注