Last active
September 8, 2016 18:21
-
-
Save mogumogu2333/8d10f169b9ad110e2baaa949a39fe57a to your computer and use it in GitHub Desktop.
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
# Export MYSQL tables into csv file | |
SELECT | |
orderNumber, status, orderDate, requiredDate, comments | |
FROM | |
orders | |
WHERE | |
status = 'Cancelled' | |
INTO OUTFILE 'C:/tmp/cancelled_orders.csv' | |
FIELDS ENCLOSED BY '"' | |
TERMINATED BY ';' | |
ESCAPED BY '"' | |
LINES TERMINATED BY '\r\n'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment