mysql 数据表中查找重复记录

  • A+
所属分类:数据库

以下sql语句可以实现查找出一个表中的所有重复的记录

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

这个我在很早有发过一个asp下的ACCESS 的

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: