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??
2020-01-19
不太明白,你是數據庫的表字段使用了關鍵字嗎?如果是的話,前后加單引號轉義即可吧。方便的話,把那張表和sql語句發出來,我看看怎么弄。
2020-01-19
老師我用@TablleField注解解決了??
這是我用條件構造器生成的錯誤信息和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??