Hacker News new | ask | show | jobs
by girvo 4055 days ago
No, that's how REPLACE works -- which is a complete pain to be honest! INSERT ... UPDATE works the way you'd hope it would, and keeps the auto inc columns correct.