Verwenden Sie INSERT ... ON DUPLICATE KEY UPDATE
FRAGE:
INSERT INTO table (id, name, age) VALUES(1, "A", 19) ON DUPLICATE KEY UPDATE
name="A", age=19
Verwenden Sie INSERT ... ON DUPLICATE KEY UPDATE
FRAGE:
INSERT INTO table (id, name, age) VALUES(1, "A", 19) ON DUPLICATE KEY UPDATE
name="A", age=19