Saved Bookmarks
| 1. |
Differentiate between fetchone() and fetchall() methods with suitable examples for each. |
|
Answer» fetchall() fetches all the rows of a query result. An empty list is returned if there is no record to fetch the cursor. fetchone() method returns one row or a single record at a time. It will return None if no more rows / records are available. |
|