tableName: 表名
id: 主鍵(唯一鍵)
field_1: 更新的字段
為空更新
INSERT IGNORE INTO `tableName`(`id`,`field_1`) VALUES('1', '100'),('2', '200') ON DUPLICATE KEY UPDATE field_1 = IF(tableName.field_1, tableName.field_1, VALUES(field_1))
新值大於舊值更新
INSERT IGNORE INTO `tableName`(`id`,`field_1`) VALUES('1', '100'),('2', '200') ON DUPLICATE KEY UPDATE field_1 = IF(VALUES(field) > tableName.field_1, tableName.field_1, VALUES(field_1))
