在用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