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

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

1064 錯(cuò)誤,使用蟒蛇操作 MySQL 數(shù)據(jù)庫

1064 錯(cuò)誤,使用蟒蛇操作 MySQL 數(shù)據(jù)庫

明月笑刀無情 2022-09-20 17:28:00
我想在Python中編寫一個(gè)程序來控制MySQL數(shù)據(jù)庫,但發(fā)生以下錯(cuò)誤pymysql.err.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntaxto use near 'Code,type, number,Whether )VALUES ('cl8k-k520-fg45-d4sa-sd9k','n' at line 1")法典:import pymysql db = pymysql.connect("localhost", "root", "root", "test")cursor = db.cursor()sql = "INSERT INTO BOOKS(Activation Code, \       type, number,Whether ) \       VALUES (%s,%s,%s,%s)"data = [("cl8k-k520-fg45-d4sa-sd9k",'n','10','n'),        ("jhg6-58jh-gh8o-8uik-7jk8",'c','20','n'),        ("x5hg-gf5h-4hj5-g4h5-fh5t",'y','999','n'),        ("fg8j-h584-fd4g-fg4d-fgg4",'n','1','y'),        ("4jk4-5kl4-4klk-4lji-4ghj",'e','6','n'),        ]cursor.executemany(sql,data)db.close()這是我第一次在這個(gè)平臺(tái)上提問。我希望得到答案
查看完整描述

1 回答

?
猛跑小豬

TA貢獻(xiàn)1858條經(jīng)驗(yàn) 獲得超8個(gè)贊

封閉為Activation Code'Activation Code'



查看完整回答
反對(duì) 回復(fù) 2022-09-20
  • 1 回答
  • 0 關(guān)注
  • 165 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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