开发者

sql query for getting same data from database [closed]

开发者 https://www.devze.com 2023-04-13 03:24 出处:网络
It's difficult to tell what is being asked here. Th开发者_如何学Gois question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form.
It's difficult to tell what is being asked here. Th开发者_如何学Gois question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

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
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号