mysql 常用查询 1 .查询某个字段的记录是否重复 select user_name,count(*) as count from user_table group by user_name having count>1;