使用Mp的条件构造器查询时时遇到mysql关键字怎么办呀
type 和 condition 是mysql关键字
type 和 condition 是mysql关键字
2020-01-19
@TableField("`condition`") @ApiModelProperty(name = "condition" , value = "经验要求") private String condition;
@TableField("`type`") @ApiModelProperty(name = "type" , value = "任职方式") private String type;
老师我用@TablleField注解解决了
condition type 是mysql的关键字
这是我用条件构造器生成的错误信息和sql
Error querying database. Cause: java.sql.SQLSyntaxErrorException: 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 'condition,education,type,address,eid,createtime,state,url,label,content1,content' at line 1
### SQL: SELECT id,jobname,salary,condition,education,type,address,eid,createtime,state,url,label,content1,content2 FROM tb_recruit
举报