I\'m new to SQLite. Is there a way I can export the results of a query into a CSV file?
Good answers from gdw2 and d5e5. To make it a little simpler here are the recommendations pulled together in a single series of commands:
sqlite> .mode csv sqlite> .output test.csv sqlite> select * from tbl1; sqlite> .output stdout