Updated on 2023-10-23 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 Example: Common Operations.