mysql 常用查询

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

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

 

posted @ 2015-04-21 15:26  勿妄  阅读(120)  评论(0)    收藏  举报