Whenever a user updates his profile, we conduct a set of queries like so:
DELETE FROM `user_likes` WHERE `ID` = $id
INSERT INTO `user_likes` VALUES (DEFAULT, $id, $interest_id, $interest_name)
Is there a way to do this all in one step? There has to be a way, because the interest IDs are all different for each user. Keep in mind that the data never actually has to be deleted - it's a set that is always growing.

UPDATE....... – Phil Aug 17 '12 at 20:39DELETEstatement? – ypercube Aug 17 '12 at 21:50