Comment by lathiat
7 years ago
At least in MySQL you can use “ON DUPLICATE KEY” to either ignore such things or optionally execute an update statement to change something about the matching row.
There is also REPLACE INTO
Assuming you have a relevant unique key setup of course.
No comments yet
Contribute on Hacker News ↗