Updated on 2024-05-07 GMT+08:00

cursor.fetchone()

Function

This method extracts the next row of the query result set and returns a tuple.

Prototype

cursor.fetchone()

Parameter

None

Return Value

A single tuple is the first result in the result set. If no more data is available, None is returned.

Example

For details, see Examples: Common Operations.