ma.gnolia

Sign In | Learn More

Skip to main content


Swap Insert for Update When Key Exists Swap Insert for Update When Key Exists

  • Not rated yet.
  • Copy Bookmark

When synchronizing tables or databases, sometimes it is useful to have a way to update a row if there is already an entry for a key. Using the MySQL syntax, ON DUPLICATE KEY UPDATE, it is possible to insert a row if it doesn’t exist or update it if there is already a row with that key.

1 user has commented on this bookmark

Name Title Rating When
14551_32 pyroman Swap Insert for Update When Key Exists
Not rated yet.
April 30, 2008

When synchronizing tables or databases, sometimes it is useful to have a way to update a row if there is already an entry for a key. Using the MySQL syntax, ON DUPLICATE KEY UPDATE, it is possible to insert a row if it doesn’t e...

3 other groups have this bookmark in their collection

Name Title Rating When
9662_32 MySQL Swap Insert for Update When Key Exists
Not rated yet.
April 30, 2008

When synchronizing tables or databases, sometimes it is useful to have a way to update a row if there is already an entry for a key. Using the MySQL syntax, ON DUPLICATE KEY UPDATE, it is possible to insert a row if it doesn’t e...

3586_32 SQL techniques Swap Insert for Update When Key Exists
Not rated yet.
April 30, 2008

When synchronizing tables or databases, sometimes it is useful to have a way to update a row if there is already an entry for a key. Using the MySQL syntax, ON DUPLICATE KEY UPDATE, it is possible to insert a row if it doesn’t e...

3586_32 SQL Swap Insert for Update When Key Exists
Not rated yet.
April 30, 2008

When synchronizing tables or databases, sometimes it is useful to have a way to update a row if there is already an entry for a key. Using the MySQL syntax, ON DUPLICATE KEY UPDATE, it is possible to insert a row if it doesn’t e...