Select Query is used to fetch records from existing table or database using python interface.
We can either search single record or multiple records from table using where clause with select query.
Syntax:
cur.execute("Select * from tablename where condition")
Here,
where : is used to give desired condition
Note:
Before using select query it is mandatory to use or create database and related table. Also values must be present to be fetched from table else no rows will be fetched.