Skip to content

Instantly share code, notes, and snippets.

@salsasteve
Created April 10, 2018 18:28
Show Gist options
  • Save salsasteve/f4a1d05c39fd17bec97968d94cffd55d to your computer and use it in GitHub Desktop.
Save salsasteve/f4a1d05c39fd17bec97968d94cffd55d to your computer and use it in GitHub Desktop.
save file to csv using MyCli
# Run below to save to csv
\T csv
\o ~/my_file.csv
select * from users where created_at > '2017-01-01';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment