Question: Help please, why it is not allowed to take value from the table? conn, cursor = connection() cursor.execute('SELECT title FROM tales WHERE category='+callback.data[5:]) query =
Help please, why it is not allowed to take value from the table?
conn, cursor = connection() cursor.execute('SELECT title FROM tales WHERE category='+callback.data[5:]) query = cursor.fetchall() print (query) conn.close()
Error: sqlite3.OperationalError: no such column: cat1

Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
