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
编组 3备份
    openGauss 2024-05-07 00:46:52
    cancel