so suppose there’s a table:
id column1 column2
1 333 4444
Where id is a primary key
And then I do
REPLACE INTO table (id, column2) VALUES (1, 55)
This will cause column1 to become null…is there a way to specify the query such that it will leave whatever existing value of column1 is when REPLACE matches an existing entry?
Use
INSERT ... ON DUPLICATE KEY UPDATE: