第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

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

測試updateGoddess時(shí)異常,提示:You have an error in your SQL syntax...求解決方法

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 '(set user_name='小夏',sex=1,age=21,birthday='2018-07-06',email='xiaoxia@imooc.' at line 1




正在回答

4 回答

String?sql=?"?update?imooc_goddess"+
????????"?set?user_name=?,sex=?,age=?,birthday=?,email=?,mobile=?,"+
????????"?update_user=?,update_date=current_date(),isdel=?"+
????????"?where?id=?";

檢查一下你的sql語法,把這個(gè)粘過去試試

0 回復(fù) 有任何疑惑可以回復(fù)我~
  1. update...set...where... 一般形式,注意sql語法?

  2. 如果你使用了預(yù)處理執(zhí)行(PreparedStatement 類的execute方法),請綁定變量,而非值直接寫sql

  3. 檢查數(shù)據(jù)類型,整條sql語句語法檢查。

0 回復(fù) 有任何疑惑可以回復(fù)我~
public?class?Test(){
????public?static?void?main(String[],args){
??????System.out.println("你可以先把sql語句在sql?yog里運(yùn)行,成功后,再粘貼過來!");
????}
}


0 回復(fù) 有任何疑惑可以回復(fù)我~
public?class?Test(){
????public?static?void?main(String[],args){
????????System.out.println("這個(gè)錯(cuò)誤是提示你的sql語句有問題,而且是在這一句的附近有問題!");
????}
}


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

舉報(bào)

0/150
提交
取消

測試updateGoddess時(shí)異常,提示:You have an error in your SQL syntax...求解決方法

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

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

幫助反饋 APP下載

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

公眾號

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