I have a table with 10 columns and I have to add many, many rows from a CSV file. Of course, I must not add two identical rows, so I need a SQL statement that ignore the command if the entire row does exists. The INSERT must be ignored only if all fields are identical. Two rows may have identical field1 or field2, but not all fields identical.
I tried INSERT IGNORE
but it doesn't work. No column is set as UNIQUE
, as the INSERT
must be ignored onyl only if the entire row is identical.
What solution do you have for this? Thanks!