Inserting with a Unique Index

suggest change
UPDATE Customers SET Email = "richard0123@example.com" WHERE id = 1;

This will fail if an unique index is set on the Email column of Customers. However, alternate behavior can be defined for this case:

UPDATE Customers SET Email = "richard0123@example.com" WHERE id = 1 ON DUPLICATE KEY;

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents