I
I
Ilya Trusov2016-01-23 18:38:12
MySQL
Ilya Trusov, 2016-01-23 18:38:12

How to remove duplicate records in mysql?

Hello. There is such table:
tyPDGrQ.png
When testing superfluous repeating records. How to remove them?
What I mean by repetitive. These are the lines where id_user, id_contact and type_contact can be repeated in the database.
Those.
1,1,2,0;
2.1.3.0;
3.1.2.0;
The first and third lines are repeated. And they need to be deleted or at least get an id.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
riot26, 2016-01-23
@artgrosvil

ok e y g y g l (yes, each letter is a different link )

D
Dimonchik, 2016-01-23
@dimonchik2013

DISTINCT
you do sELECT DISTINCT, you insert it into another tabla, you bang this one

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question