Skip to content

Instantly share code, notes, and snippets.

@ywindish
Created July 1, 2015 08:24
Show Gist options
  • Save ywindish/2dbd9850b2377a3c154d to your computer and use it in GitHub Desktop.
Save ywindish/2dbd9850b2377a3c154d to your computer and use it in GitHub Desktop.
MySQLのSELECT結果をCSVで保存する ref: http://qiita.com/ywindish/items/af1d95654ab6cd44c10d
mysql -uuser_name db_name -p -B < sample.sql | sed -e 's/\t/,/g' > sample.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment