MySQL update a record on duplicate key update (merge)
you can use UPDATE like this:
UPDATE `products`
SET `price` = 200
WHERE ID = 2;

or REPLACE like this:
REPLACE into products (id, price) values(2, 200);