今天在编写mybatsi编写like模糊查询的时候遇到一个报错,关于 Parameter index out of 异常,问题是这样的,在网上找了一下复制粘贴,果然没让我失望,报错

SQLException: Parameter index out of range (1 > number of parameters, which is 0).异常

后来进过查百度,终于解决了........要是你遇到这样的问题,希望我的解决办法能帮到你!

解决的办法可以是这样........ 

WHERE channel_name LIKE CONCAT('%',#{channelName},'%')

SQLException: Parameter index out of range (1 > number of parameters, which is 0).异常

相关文章:

  • 2021-12-05
  • 2022-12-23
  • 2021-10-03
  • 2021-12-05
  • 2022-01-14
  • 2021-07-12
  • 2022-12-23
  • 2021-10-13
猜你喜欢
  • 2022-12-23
  • 2021-09-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案