I'm really blocked with multiple insert values and if any one exist, do custom update. Here is my query that not work :
INSERT INTO `table` (f1,f2,status) VALUES
(1,5,'on') ON DUPLICATE KEY UPDATE status='off',
(3,2,'on') ON DUPLICATE KEY UPDATE status='off',
(15,20,'on') ON DUPLICATE KEY UPDATE status='off';
There is any solution that can do this query?
Thanks for everyone