I have a table in a MySQL database containing below fields:
cid
number
date
code
cid and number are keys.
Every day data from another table from the first date is inserted to this table with a php script.
code field is updatable in source table and I want to update the existing records in destination table if code has changed when inserting records to destination. I mean I do not want to insert updated data as a new row but updating current record.
How can I do this?