这是mybatis通过注解方式写的SQL语句:
@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
通过第三方软件直接执行SQL语句,也报错,如下