mybatis “%“#{}“%“ 报错,参数类型为Integer
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报错还是第一次见
原创
2022-05-01 23:21:10 ·
1120 阅读 ·
2 评论