Created
April 10, 2024 17:04
-
-
Save tiller1010/15a8a40c682555efbf65fc82a295a7bc to your computer and use it in GitHub Desktop.
Ouput mysql query to csv file
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
| SELECT * FROM `table_name` | |
| into outfile '/var/lib/mysql-files/output-new.csv' fields terminated by "," enclosed by '"' lines terminated by "\n"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment