Answer the question
In order to leave comments, you need to log in
How to find duplicates in MySQL?
Hello , how to do search and delete in MYSQL database? Through PHP?
Answer the question
In order to leave comments, you need to log in
We look for duplicates by grouping by value and filtering those that are less than two.
Example
SELECT
valueField1,
valueField2,
count(*)
FROM
myTable
GROUP BY
valueField1,
valueField2
HAVING
count(*)>1
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question