Python MySQL Connector database query with %s fails
I have a basic program that is supposed to query a database that contains user information. I am trying to select the information for a specific user and print it out to the console.
I have a basic program that is supposed to query a database that contains user information. I am trying to select the information for a specific user and print it out to the console.
Is there an elegant way of getting a single result from an SQLite SELECT query when using Python?