私はpython 2.7.3とSqlite3を使用して、いくつかのデータを小さなデータベースに保存しています。次のSQLコマンドがあります:
thedb = "allpeople"
cursor.execute("INSERT INTO %s VALUES (?,?,?,?,?,?,?,?,?,?,?,?)" % (thedb, data))
conn.commit()
しかし、次のエラーがスローされます。
TypeError: not all arguments converted during string formatting