sql query for getting same data from database [closed]
My MYSQL database contains some fields which contains duplicate entries. I want to view all those rows which contains same data. Is there a query for this.
If mycolumn
is the column that has duplicate data, you need to use the following:
SELECT mycolumn FROM mytable GROUP BY mycolumn HAVING COUNT(*) > 1
精彩评论