INSERT/UPDATE 事务

示例 INSERT INTO {table}(name,num,created,updated) VALUES('{name}',num,{now},{now}) ON DUPLICATE KEY UPDATE num=num+{num},updated={now}