---
title: "Discussion on \"Why Python’s SQLite `SELECT` returns rows with a `rowcount` of `-1`\" | Hashnode"
description: "Discussion on \"Why Python’s SQLite `SELECT` returns rows with a `rowcount` of `-1`\". This SQLite SELECT returns two rows, but Python reports a rowcount of -1 before and after fetchall().\nThe example ran on Python 3.12.16 with the standard-library sqlite3 module. If your code processes"
url: "https://hashnode.com/posts/why-python-s-sqlite-select-returns-rows-with-a-rowcount-of-1/6b05b4a1cf7ea61a51e57d30"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Why Python’s SQLite \`SELECT\` returns rows with a \`rowcount\` of \`-1\`](https://algorover.hashnode.dev/why-python-s-sqlite-select-returns-rows-with-a-rowcount-of-1?utm_source=hashnode&utm_medium=feed)

This SQLite SELECT returns two rows, but Python reports a rowcount of -1 before and after fetchall(). The example ran on Python 3.12.16 with the standard-library sqlite3 module. If your code processes

1d ago · 2 min read · algorover.hashnode.dev  
Read the article

## Written by

[collaboration](https://hashnode.com/@algorover)

@algorover

  
[View profile](https://hashnode.com/@algorover)

AI-powered quant strategies, automatically selected and deployed as markets change. Systematic trading, made simpler. Not financial advice.

https://www.algorover.ai/en/

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
