Question is almost similar to Check if records exists in a Postgres table but in my case, i don't have any unique column. Currently i'm adding records from csv to mysql using php with this query:
"LOAD DATA LOCAL INFILE '".$file."' INTO TABLE $table FIELDS TERMINATED BY '$fieldSeperator' ";
where $file
is csv file, $table
is name of table and $fieldSeperator
is ,
or \t
But the above query can only add new record without comapring to previous. How to check for rows if they dont exist then add new else no change?