T
T
TechNOIR2018-03-28 15:25:11
PHP
TechNOIR, 2018-03-28 15:25:11

PHPMYADMIN. How to check for duplicate when importing CSV?

Good afternoon!
Tell me please. I am importing via phpmyadmin csv file. The check for a duplicate goes only by the ID column for some reason, although in any case my ID is different. You need to check in a different way.
How would it be implemented? Change column type? thanks in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lander, 2018-03-28
@usdglander

Check - no way.
You can hang a UNIQUE index in the table on the field and disable interrupting imports when errors occur.
Then only records with a unique field value will be imported into the table.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question