Swap Insert for Update When Key Exists
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 | |
|---|---|---|---|---|
| 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 | |
|---|---|---|---|---|
| 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... |
||||
| 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... |
||||
| 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... |
||||
