From here and d5e5’s comment:
You’ll have to switch the output to csv-mode and switch to file output.
sqlite> .mode csv
sqlite> .output test.csv
sqlite> select * from tbl1;
sqlite> .output stdout
More Related Contents:
- Export from sqlite to csv using shell script
- How do I rename a column in a SQLite database table?
- How do I check in SQLite whether a table exists?
- Importing a CSV file into a sqlite3 database table using Python
- Accessing an SQLite Database in Swift
- Import CSV to SQLite
- Difference between 2 dates in SQLite
- Select random row from a sqlite table
- Import .csv file to Sqlite in Android
- Sqlite primary key on multiple columns
- Can SQLite support multiple users?
- Python CSV to SQLite
- What is the difference between SQLite integer data types like int, integer, bigint, etc.?
- How to implement Export sqlite To excel/csv file in android?
- How to generate all dates between two dates
- SQLITE_BUSY The database file is locked (database is locked) in wicket
- Does it matter what extension is used for SQLite database files?
- SQLite “INSERT OR REPLACE INTO” vs. “UPDATE … WHERE”
- How do I DROP a constraint from a sqlite (3.6.21) table?
- Sqlite over a network share [closed]
- SQLite table constraint – unique on multiple columns
- Is there a boolean literal in SQLite?
- Case sensitive and insensitive like in SQLite
- svn cleanup: sqlite: database disk image is malformed
- Truncate a SQLite table if it exists?
- SQLite database supporting Unicode data
- Integration Testing Entity Framework code first with in-memory database
- How to get the number of rows of the selected result from sqlite3?
- How to get the last index of a substring in SQLite?
- SQLITE3 VACUUM, “database or disk is full”