When using insert... on duplicate key update, what is the syntax to update multiple columns and not update some columns?
i wrote the following query:
INSERT INTO table (id,number,text) VALUES (1,2,3),(3,5,"i want this remain the previous value and not change"),(1,2,3)
ON DUPLICATE KEY UPDATE id=VALUES(id), number=VALUES(number), text=VALUES(text);
how to not change some values and let them remain it's previous value?