I have a tbale userId = PK and AUTO_INCREMENT and e-mail = unique. When a new user is added, I use the INSERT key, but if an existing user updates their profile, I use REPLACE. This though treats the updated record as a new entry and updates the AUTO_INC (which I guess if fine).
Is there a way I can simply UPDATE the record, w/o checking if it already exists first, so that AUTO_INC remins at the proper iteration?
Is there a way I can simply UPDATE the record, w/o checking if it already exists first, so that AUTO_INC remins at the proper iteration?