Skip to content

Commit fc14cdf

Browse files
committed
SQLite
1 parent 3c87a7a commit fc14cdf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1764,7 +1764,7 @@ db.close()
17641764
```python
17651765
cursor = db.execute('<query>')
17661766
if cursor:
1767-
<tuple> = cursor.fetchone() # First row.
1767+
<tuple> = cursor.fetchone() # First row. Also next(cursor).
17681768
<list> = cursor.fetchall() # Remaining rows.
17691769
```
17701770
* **Returned values can be of type str, int, float, bytes or None.**

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1569,7 +1569,7 @@
15691569
</ul>
15701570
<div><h3 id="read">Read</h3><pre><code class="python language-python hljs">cursor = db.execute(<span class="hljs-string">'&lt;query&gt;'</span>)
15711571
<span class="hljs-keyword">if</span> cursor:
1572-
&lt;tuple&gt; = cursor.fetchone() <span class="hljs-comment"># First row.</span>
1572+
&lt;tuple&gt; = cursor.fetchone() <span class="hljs-comment"># First row. Also next(cursor).</span>
15731573
&lt;list&gt; = cursor.fetchall() <span class="hljs-comment"># Remaining rows.</span>
15741574
</code></pre></div>
15751575

0 commit comments

Comments
 (0)