Find duplicates in the same table in MySQL

后端 未结 13 1877
感动是毒
感动是毒 2020-12-10 02:03

I have a table with two columns - artist, release_id

What query can I run to show duplicate records?

e.g. my table is

ArtistX : 45677
ArtistY         


        
相关标签:
13条回答
  • 2020-12-10 02:31
    SELECT row, COUNT(row) AS num FROM mytable GROUP BY row HAVING (num > 1);
    
    0 讨论(0)
提交回复
热议问题