mysql构造器错误_使用Mp的条件构造器查询时时遇到mysql关键字怎么办呀
发布日期:2021-06-24 16:33:16 浏览次数:2 分类:技术文章

本文共 720 字,大约阅读时间需要 2 分钟。

7cfb96453e63baec51d4e876853c5679.png

慕九州9160395

2020-01-19 19:01

@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

转载地址:https://blog.csdn.net/weixin_33865450/article/details/113724416 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:java 技能_Java大牛必备的25个技能
下一篇:如何用python计算数独_python实现数独算法实例

发表评论

最新留言

哈哈,博客排版真的漂亮呢~
[***.90.31.176]2024年04月21日 00时02分21秒