Changes between Version 3 and Version 4 of DatabaseBasedAnalysis/table2sql
- Timestamp:
- 08/07/18 16:41:45 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DatabaseBasedAnalysis/table2sql
v3 v4 133 133 134 134 Another option is to update duplicate entries. This can be done using the `ON DUPLICATE KEY UPDATE` directive. Giving `-duplicate`, you can specify what should be updated in case of a duplicate key. To keep the row untouched, you can just update the primary key with the identical primary key, e.g. 135 135 136 {{{ 136 --duplicate= 'MyPrimary=VALUES(MyPrimary)'137 }}} .137 --duplicate="MyPrimary=VALUES(MyPrimary)" 138 }}} 138 139 139 140 The `--duplicate` resource can be specified more than once to add more expressions to the assignment_list. For more details, see the MySQL manual.