mysql 常用查询

1 .查询某个字段的记录是否重复

select user_name,count(*) as count from user_table group by user_name having count>1; 
原文地址:https://www.cnblogs.com/a198720/p/4444476.html