qq_41908367 2022-01-24 14:46 采纳率: 90.4%
浏览 62
已结题

请问mybatis 批量更新为什么没成功

update cup_copy set text_ture =case id when ? then ? when ? then ? end where text_ture in ( ? , ? )
==> Parameters: 2(String), 10(String), 3(String), 93(String), 2(String), 3(String)

img


格式不对吗?

  • 写回答

2条回答 默认 最新

  • 路还长,且向前走 2022-01-24 15:33
    关注

    因为你写错了...
    正确答案:update cup_copy set text_ture =case id when ? then ? when ? then ? end where id in ( ? , ? )

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

问题事件

  • 系统已结题 2月2日
  • 已采纳回答 1月25日
  • 创建了问题 1月24日