Answer the question
In order to leave comments, you need to log in
Postgresql throws an error on execute query, what's the problem?
Good afternoon, I want to display a list of all users from a Postgresql table
Output code:
sql.execute('SELECT count(user_id) FROM main')
users = sql.fetchall()
psycopg2.ProgrammingError: no results to fetch
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question