I have the following query:
INSERT INTO Test (Test1, Test2, Test3, Test4) VALUES (5, 5, 5, 55) ON duplicate KEY UPDATE Test1 = VALUES(5);
This works fine on MySQL but I get a syntax error on SQLite, my question(s) are: (1) How will I convert this query to work with SQLite whilst providing it's functionality (2) How do I update multiple field in the case of a duplicate?