Export SQLite query to a CSV file
Executes a sql query against the given SQLite database and outputs the the results to a CSV file.
Authored by: rorroBrought to you by Warp, a free terminal reimagined to work like a modern app.
db_filepath
sql_query
output_filepath
Command
Copy
sqlite3 -header -csv db_filepath sql_query > output_filepath
Tags
Edit in GitHub
Copied