最近中文字幕高清中文字幕无,亚洲欧美高清一区二区三区,一本色道无码道dvd在线观看 ,一个人看的www免费高清中文字幕

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

使用Mp的條件構(gòu)造器查詢時(shí)時(shí)遇到mysql關(guān)鍵字怎么辦呀

?type 和?condition 是mysql關(guān)鍵字?

正在回答

2 回答

不太明白,你是數(shù)據(jù)庫的表字段使用了關(guān)鍵字嗎?如果是的話,前后加單引號(hào)轉(zhuǎn)義即可吧。方便的話,把那張表和sql語句發(fā)出來,我看看怎么弄。

0 回復(fù) 有任何疑惑可以回復(fù)我~
@TableField("`condition`")
@ApiModelProperty(name?=?"condition"?,?value?=?"經(jīng)驗(yàn)要求")
private?String?condition;
@TableField("`type`")
@ApiModelProperty(name?=?"type"?,?value?=?"任職方式")
private?String?type;

老師我用@TablleField注解解決了??

condition??type?是mysql的關(guān)鍵字

這是我用條件構(gòu)造器生成的錯(cuò)誤信息和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??

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

老猿

解決了就好,但是不建議用數(shù)據(jù)庫關(guān)鍵字作為數(shù)據(jù)庫表字段
2020-01-20 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

使用Mp的條件構(gòu)造器查詢時(shí)時(shí)遇到mysql關(guān)鍵字怎么辦呀

我要回答 關(guān)注問題
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)