0

Insert into a MySQL table or update if exists

SQL
INSERT INTO table (id, name, age) VALUES(1, "A", 19) ON DUPLICATE KEY UPDATE    
name="A", age=19
add comment
Suggest a different solution or add another example