Dec-13-2020, 10:10 PM
(This post was last modified: Dec-13-2020, 10:10 PM by deanhystad.)
In this line are you trying to pass a tuple?
cur.execute("SELECT * FROM Books WHERE ISBN = %s", (search_words))If so, the syntax is
cur.execute("SELECT * FROM Books WHERE ISBN = %s", (search_words,))The trailing comma tells Python this is a single element tuple, not something surrounded by parenthesis.