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: rorro
db_filepath
sql_query
output_filepath

Command
Copy
sqlite3 -header -csv db_filepath sql_query > output_filepath
Tags