Skip to content

Commit 93aefa5

Browse files
committed
SQLite
1 parent 4ef2d28 commit 93aefa5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,8 @@ db = sqlite3.connect(<filename>)
772772
```python
773773
cursor = db.execute(<query>)
774774
if cursor:
775-
<list> = cursor.fetchall() # Or cursor.fetchone()
775+
<tuple> = cursor.fetchone() # First row.
776+
<list> = cursor.fetchall() # Remaining rows.
776777
db.close()
777778
```
778779

0 commit comments

Comments
 (0)