Created
August 23, 2016 07:50
-
-
Save Bogdaan/6139f0db171bc7a27f208b8de11dd442 to your computer and use it in GitHub Desktop.
sql query to 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
| INTO OUTFILE '/tmp/orders.csv' | |
| FIELDS TERMINATED BY ',' | |
| ENCLOSED BY '"' | |
| LINES TERMINATED BY '\n'; |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
INTO OUTFILE '/tmp/orders.csv' FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n';