1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 15:22:08 +02:00
tldr/pages/common/sqlite3.md
2017-07-03 12:41:36 +01:00

15 lines
406 B
Markdown

# sqlite3
> The command-line interface to SQLite 3, which is a self-contained file-based embedded SQL engine.
- Start an interactive shell with a new database:
`sqlite3`
- Open an interactive shell against an existing database:
`sqlite3 {{path/to/database.sqlite3}}`
- Execute an SQL statement against a database and then exit:
`sqlite3 {{path/to/database.sqlite3}} '{{SELECT * FROM some_table;}}'`