sqlite3.OperationalError: near "7": syntax error
snippet in sql

sqlite3.OperationalError: near "7": syntax error

user358

cur.execute('INSERT INTO "{}" VALUES(?, ?)'.format(group.replace('"', '""')), (food, 1))

sqlite3.OperationalError: near "7": syntax error

user7168

cur.execute('SELECT COUNT(Name) FROM "{}" WHERE Name=?'.format(group.replace('"', '""')), (food,))

sqlite3.OperationalError: near "7": syntax error

user8244

cur.execute('UPDATE "{}" SET Times=? WHERE Name=?'.format(group.replace('"', '""')),
            (times_before + 1, food))