$sql = "INSERT IGNORE INTO product (reference, description, price, created_at, updated_at)
VALUES ('{$sku}', '{$description}', '{$price}', '{$created_at}', '{$updated_at}')";
.. keeps on creating new rows because of the incrementing id column, how do I make SKU unique so it checks if SKU value exists, then UPDATE instead of INSERT.
referencecolumn withALTER TABLEorCREATE INDEX.MERGEbut that does not seem to be supported within MySQL.ON DUPLICATE KEYwon't do anything.