執(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
使用 psycopg2 出現(xiàn) InternalError 后要怎么處理?
不負(fù)相思意
2019-04-08 11:16:44