You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '777"%“)
今天在用mybatis进行模糊匹配时遇到上述问题,
medicine.type的类型是Integer,在进行模糊匹配的时候报错
平时都用 “%”#{}”%"进行字符串的模糊匹配,都挺正常。
参数传Integer报错还是第一次见。
最后通过换用匹配方式解决问题
最后成功查询到结果
mybatis “%“#{}“%“ 报错,参数类型为Integer
最新推荐文章于 2023-01-04 16:19:58 发布