Doc Map
Application Development GuidePsycopg-Based DevelopmentPsycopg API Referencecursor.fetchall()
cursor.fetchall()
Function
This method obtains all the (remaining) rows of the query result and returns them as a list of tuples.
Prototype
cursor.fetchall()
Parameter
None
Return Value
Tuple list, which contains all results of the result set. An empty list is returned when no rows are available.
Examples
For details, see Example: Common Operations.
Feedback