Created
July 1, 2015 08:24
-
-
Save ywindish/2dbd9850b2377a3c154d to your computer and use it in GitHub Desktop.
MySQLのSELECT結果をCSVで保存する ref: http://qiita.com/ywindish/items/af1d95654ab6cd44c10d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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