Created
October 8, 2015 23:17
-
-
Save SyNeto/7ad19c29753d61bfdf77 to your computer and use it in GitHub Desktop.
Script CSV Database MYSQL
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 * into outfile '/tmp/users.csv' | |
fields terminated by ',' optionally enclosed by '"' | |
escaped by '\\' | |
lines terminated by '\n' | |
from registros_registro where registrante_id is not null; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment