Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Unfortunately, it is not clear from the question how you work with the database from Python. Through the client, through cursors? Therefore, the question remains how you can drag the result of the query into the python from the database itself.
In general, you need to execute a database query like:
SELECT
COUNT(table.id) AS num_id
FROM table
will num_id
be your answer.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question