At 10:24 17/09/2002 +0100, [EMAIL PROTECTED] wrote: >According to the manual, if INSERT IGNORE finds a row already present in >the table, it does not update the row with the new data. How can I get the >opposite behaviour? In my case, there shouldn't be a record with the unique >ID I am inserting. But if there is, my recovery behaviour is to delete the >old one and then do the insert again - I don't care what the old data was, >my new data is correct for the new situation. Can I get MySQL to do that >for me?
The command you're looking for is REPLACE. Mark --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php