Skip to content

Instantly share code, notes, and snippets.

@SyNeto
Created October 8, 2015 23:17
Show Gist options
  • Save SyNeto/7ad19c29753d61bfdf77 to your computer and use it in GitHub Desktop.
Save SyNeto/7ad19c29753d61bfdf77 to your computer and use it in GitHub Desktop.
Script CSV Database MYSQL
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