rows
The .rows command toggles the display of the number of rows returned by a query in rsql. This is useful for quickly
verifying the size of your result set, especially when filtering or aggregating data.
Usage
.rows <on|off>
When to use
- Enable .rows onto always see how many rows your queries return—helpful for data validation and exploration.
- Disable .rows offfor a cleaner output, especially when exporting results or scripting.
Examples
Show the current rows setting:
.rows
Turn on the rows returned display:
.rows on
Turn off the rows returned display:
.rows off
Troubleshooting
- If you do not see row counts, ensure .rows onis set.
- For minimal output, use .rows offin combination with.header offand.footer off.
Related
- See the rowsoption in rsql.toml configuration.
- For output customization, see format, header, and footer.