执行完第6行以后,再怎么执行都抛出InternalError.请问有没有办法执行完第6行后还能继续查询?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
侃侃无极
相关分类