<type 'exceptions.Exception'> : Incorrect number of bindings supplied. The current statement uses 1, and there are XX supplied.
在進(jìn)行帶參數(shù)的sql查詢(xún)時(shí),提示以上報(bào)錯(cuò)信息
有兩種解決方法:
一:在參數(shù)后面加逗號(hào)“,”
二:將圓小括號(hào)換成方括號(hào)
知乎上有個(gè)回答解釋的很清晰
可參考:http://stackoverflow.com/questions/16856647/sqlite3-PRogrammingerror-incorrect-number-of-bindings-supplied-the-current-sta
新聞熱點(diǎn)
疑難解答
網(wǎng)友關(guān)注