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

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

mysql語(yǔ)法問(wèn)題,我使用的mysql是8.0.11

check the manual that corresponds to your MySQL server version for the right syntax to use near 'where item_id = 5 and stock >= 1' at line 3.

正在回答

3 回答

在銷(xiāo)量增加中犯了同樣的錯(cuò)誤,一開(kāi)始就認(rèn)為是sql語(yǔ)句錯(cuò)了,結(jié)果就是這個(gè)逗號(hào)被直接忽略,在service層浪費(fèi)了兩個(gè)半鐘。。。感謝啊,要是沒(méi)你的提示還不知道要搞多久。

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

解決了,原來(lái)是沒(méi)有刪除

set?stock?=?stock?-?#{amount},

這的逗號(hào)

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

### Error updating 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 'where item_id = 5 and stock >= 1' at line 3

### The error may involve defaultParameterMap

### The error occurred while setting parameters

### SQL: update item_stock? ? ?set stock = stock - 1,? ? ?where item_id = 5 and stock >= 1

### 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 'where item_id = 5 and stock >= 1' at line 3

; bad SQL grammar []; nested exception is 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 'where item_id = 5 and stock >= 1' at line 3]



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

舉報(bào)

0/150
提交
取消
SpringBoot構(gòu)建電商基礎(chǔ)秒殺項(xiàng)目
  • 參與學(xué)習(xí)       49465    人
  • 解答問(wèn)題       978    個(gè)

應(yīng)用SpringBoot快速搭建擁有用戶(hù)、商品、交易及秒殺活動(dòng)的電商秒殺應(yīng)用。

進(jìn)入課程

mysql語(yǔ)法問(wèn)題,我使用的mysql是8.0.11

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

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

幫助反饋 APP下載

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

公眾號(hào)

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