0
select=input("select: ")
for row in data.execute('select ? from stocks where date like "2015-11-05" ',(select)):
print(row)
這就是我現在要做的所有事情,但是我得到這個錯誤, t找到解決方案python sql,「select?from table where?like?」,(selected,where,like))
sqlite3.ProgrammingError: Incorrect number of bindings supplied.
The current statement uses 1, and there are 5 supplied.
有沒有辦法做到這一點?我假設答案與標題類似。
@ user5464854很高興幫助,請參閱http://stackoverflow.com/help/someone-answers。 – alecxe