Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
重複の可能性: MySQL重複行 重複行番号の表示
テーブルに主キー列がない場合、テーブル内の重複行を見つける方法を教えてもらえますか?
Table列がある場合Field1, Field2:
Table
Field1, Field2
SELECT FIELD1, FIELD2 FROM Table GROUP BY FIELD1, FIELD2 HAVING COUNT(*)>1