Skip to content

Instantly share code, notes, and snippets.

@kaelig
Created June 29, 2010 17:25
Show Gist options
  • Save kaelig/457517 to your computer and use it in GitHub Desktop.
Save kaelig/457517 to your computer and use it in GitHub Desktop.
Export csv avec sqlite
## Output csv from sqlite
$ sqlite3 db.sqlite
sqlite> .mode csv
sqlite> .header on
sqlite> .output db.csv
sqlite> .separator ,
sqlite> select * from table;
sqlite> .exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment