Insert or Update Record if Unique Key Already Exists


/ Published in: SQL
Save to your folder(s)

This snippet allows you to insert new record into table. In case a unique key already exists - it updates appropriate fields only, leaving other fields untouched.

URL: http://www.apphp.com/index.php?snippet=mysql-insert-or-update-if-unique-key-already-exists

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.