这是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
我用数据库软件直接运行代码段,发现第一个‘%’后面就好像没用了。。。大神帮我看看呗