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