Skip to content

Instantly share code, notes, and snippets.

@kaelig
Created June 29, 2010 17:25
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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