I'm a newbie in Python and would like to select some data from postgreSQL database using python psycopg2 API.
The table I'm selecting is inside a schema dl(dl.products),so when I write the code
Conn= psycopg2.connect(host="localhost",database="postgres",user="postgres", password="postgres")
Cur=conn.cursor()
Cur.execute("select * from dl.products")
It's showing the error relation dl.products doesn't exists.
Can anyone show me an example on how to do this?