注册

ON DUPLICATE KEY UPDATE怎么使用

匸㕕 2023/11/30 1301 1

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】:
【操作系统】:
【CPU】:
【问题描述】*:INSERT INTO a (user_id , limit_type, hours ) VALUES
<foreach collection="list" index="index" item="item" separator=",">
(#{item.userId} ,#{item.limitType},#{item.hours} )
</foreach>
ON DUPLICATE KEY UPDATEhours’= hours+VALUES(hours) else score+VALUES(score` ) end ),ltime=now()
为什么不行

回答 0
暂无回答
扫一扫
联系客服