這是SQL代碼,用的時mybatis的注解 @Select("select * from t_chushou where (title like CONCAT('%',#{0},'%')")錯誤信息是:SQL: select * from t_chushou WHERE (title like CONCAT("%",?,"%")
### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: 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 '' at line 2我用數據庫軟件直接運行代碼段,發現第一個‘%’后面就好像沒用了。。。大神幫我看看唄
添加回答
舉報
0/150
提交
取消
