N
N
new_year20212020-12-28 00:45:51
Python
new_year2021, 2020-12-28 00:45:51

Why does it output None even though there is data in the table?

result_Devit_pm = curr.execute(
        f"""SELECT class FROM {table_name}""")
print(result_Devit_pm)

Outputs None even though pgadmin4 has data. What is the reason?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Karbivnichy, 2020-12-28
@new_year2021

Haven't forgotten anything?
records = curr.fetchall()
Working with PostgreSQL in Python

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question