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

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

使用 psycopg2 出現(xiàn) InternalError 后要怎么處理?

使用 psycopg2 出現(xiàn) InternalError 后要怎么處理?

不負(fù)相思意 2019-04-08 11:16:44
執(zhí)行完第6行以后,再怎么執(zhí)行都拋出InternalError.請(qǐng)問(wèn)有沒(méi)有辦法執(zhí)行完第6行后還能繼續(xù)查詢?1importpsycopg22conn=psycopg2.connect("dbname=testuser=test")3cur=conn.cursor()4cur.execute("selectphonefromaccountwherephone=%s;",("13366668888",))5cur.fetchone()6cur.execute("selectphonefromaccountwherephone=%s;",(13366668888,))7cur.execute("selectphonefromaccountwherephone=%s;",("13366668888",))輸出如下(省略了Traceback):Out[5]:('13366668888',)Out[6]:ProgrammingError:operatordoesnotexist:charactervarying=bigintLINE1:selectphonefromaccountwherephone=13366668888;^HINT:Nooperatormatchesthegivennameandargumenttype(s).Youmightneedtoaddexplicittypecasts.Out[7]:InternalError:currenttransactionisaborted,commandsignoreduntilendoftransactionblock
查看完整描述

2 回答

?
侃侃無(wú)極

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

currenttransactionisaborted,commandsignoreduntilendoftransactionblock
中文就是
當(dāng)前事務(wù)被中止,直到事務(wù)結(jié)束前的命令都將被忽略
所以你想繼續(xù)的話,開(kāi)啟新事務(wù)就可以了,比如conn.commit()一下。
                            
查看完整回答
反對(duì) 回復(fù) 2019-04-08
  • 2 回答
  • 0 關(guān)注
  • 1167 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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