-
-
Save brpaz/6666182f78c65d973653 to your computer and use it in GitHub Desktop.
mysql export table into CSV file #mysql #csv
This file contains hidden or 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 -u USERNAME -p DATABASE -e "select * from TABLE;" | sed 's/\t/","/g;s/^/"/;s/$/"/;s/\n//g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment