Finding duplicate values in MySQL

前端 未结 25 2646
执笔经年
执笔经年 2020-11-22 04:04

I have a table with a varchar column, and I would like to find all the records that have duplicate values in this column. What is the best query I can use to find the duplic

25条回答
  •  深忆病人
    2020-11-22 04:35

    Select column_name, column_name1,column_name2, count(1) as temp from table_name group by column_name having temp > 1
    

提交回复
热议问题