Comments to Aloha せかい - UPDATE or INSERT in sql
MySQLRecommended:INSERT INTO table (id, name, age) VALUES(1, "A", 19) ON DUPLICATE KEY ...