<type 'exceptions.Exception'> : Incorrect number of bindings supplied. The current statement uses 1, and there are XX supplied.
在進行帶參數的sql查詢時,提示以上報錯信息
有兩種解決方法:
一:在參數后面加逗號“,”
二:將圓小括號換成方括號
知乎上有個回答解釋的很清晰
可參考:http://stackoverflow.com/questions/16856647/sqlite3-PRogrammingerror-incorrect-number-of-bindings-supplied-the-current-sta
新聞熱點
疑難解答