Created
November 28, 2021 14:24
-
-
Save mshakhomirov/f54c634d9923c4fa0a36fca655277f9a to your computer and use it in GitHub Desktop.
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
SELECT * | |
INTO OUTFILE 'file_0.csv' -- Change the filename here | |
FIELDS | |
TERMINATED BY ',' | |
OPTIONALLY ENCLOSED BY '"' | |
ESCAPED BY '\\' | |
LINES TERMINATED BY '\n' | |
FROM table | |
WHERE id BETWEEN 0 AND 1000000 -- And change the range here |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment