Ja, brug INSERT INTO ... ON DUPLICATE KEY UPDATE syntaks.
https://dev.mysql.com/doc /refman/5.0/da/insert-on-duplicate.html
Du skal have en nøgle defineret i tabellen af typer UNIQUE eller PRIMARY KEY .
Ja, brug INSERT INTO ... ON DUPLICATE KEY UPDATE syntaks.
https://dev.mysql.com/doc /refman/5.0/da/insert-on-duplicate.html
Du skal have en nøgle defineret i tabellen af typer UNIQUE eller PRIMARY KEY .