Answer the question
In order to leave comments, you need to log in
Why does the Not all parameters were used in the SQL statement error occur?
Hello!
I'm trying to execute the following query to enter data into the database:
INSERT INTO users (chat_id, username, first_name, last_name) VALUES (?, ?, ?, ?)
ins = 'INSERT INTO users (chat_id, username, first_name, last_name) VALUES (?, ?, ?, ?)'
user_bd.execute(ins, (message.chat.id, message.chat.username,
message.chat.first_name, message.chat.last_name))
user_bd.close()
connection.close()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question