【MySQL】重複している行のみ表示させる

pc

重複している行を検索するときのSQL


SELECT *
FROM テーブル名
WHERE 列A
IN (
SELECT 列A
FROM テーブル名
GROUP BY 列A
HAVING count( * ) > 1
) ORDER BY 列A;
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x