В настоящее время я использую API базы данных SQLite 3 в Python 2.7. Когда я иду, чтобы выполнить запрос, например, такой:
c.execute('''select ? from music where ? like "%?%"''', (attr, attr, query))
Я получаю следующую ошибку:
sqlite3.ProgrammingError: Incorrect number of bindings supplied. The current statement uses 2, and there are 3 supplied.
Я думаю, что %?%
- это то, что его отбрасывает.