SQLite 3 · Opening and leaving

Run a query from the shell

Run one statement and exit.

sqlite3 app.db "SELECT COUNT(*) FROM users;"

Official SQLite 3 documentation

More opening and leaving commands

All opening and leaving commands · SQLite 3 cheatsheet

Was this page helpful?