From fc14cdfd0d2b52c8df31a2efdff31a025a247e55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sat, 20 Jul 2019 17:57:45 +0200 Subject: [PATCH] SQLite --- README.md | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1caa3e1..ce20c55 100644 --- a/README.md +++ b/README.md @@ -1764,7 +1764,7 @@ db.close() ```python cursor = db.execute('') if cursor: - = cursor.fetchone() # First row. + = cursor.fetchone() # First row. Also next(cursor). = cursor.fetchall() # Remaining rows. ``` * **Returned values can be of type str, int, float, bytes or None.** diff --git a/index.html b/index.html index e0abd67..ddb43f5 100644 --- a/index.html +++ b/index.html @@ -1569,7 +1569,7 @@ db.close()

Read

cursor = db.execute('<query>')
 if cursor:
-    <tuple> = cursor.fetchone()               # First row.
+    <tuple> = cursor.fetchone()               # First row. Also next(cursor).
     <list>  = cursor.fetchall()               # Remaining rows.