
// 指定分割符,默认是,
--input-fields-terminatied-by ':' \
更新模式
--update-model updateonly # 根据key更新数据,只更新不插入(新导入的数据不处理)
--update-model allowinsert # 根据key更新数据,也更新也插入
--update-key


本文详细介绍了数据更新的两种关键模式:仅更新现有记录(updateonly)及既更新又插入新记录(allowinsert)。通过这两种模式,可以有效地管理数据库中的数据状态,确保数据的一致性和完整性。

// 指定分割符,默认是,
--input-fields-terminatied-by ':' \
更新模式
--update-model updateonly # 根据key更新数据,只更新不插入(新导入的数据不处理)
--update-model allowinsert # 根据key更新数据,也更新也插入
--update-key



被折叠的 条评论
为什么被折叠?