Jaime Casanova Wrote:
 
> But MERGE isn't REPLACE...
> 
> REPLACE will delete old records to insert new ones; MERGE try 
> to insert and if the record exists then can UPDATE just a few 
> values, maybe incrementing them with a value (all the 
> calculation are doing by the MERGE)

That sounds like MySQL's 'INSERT INTO ... ON DUPLICATE KEY UPDATE',
which they recommend over REPLACE anyways.


---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
       choose an index scan if your joining column's datatypes do not
       match

Reply via email to