Posted By

czapata on 12/15/09


Tagged

mysql


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

jeremydouglass
Priestd09


Dump Table Data into CSV


 / Published in: SQL
 

  1. USE YOUR_DB_NAME;
  2. SELECT * INTO OUTFILE 'PATH/TO/FILE.csv' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' ESCAPED BY '\\' LINES TERMINATED BY '\n' FROM TABLE_NAME WHERE FILTERS_GO HERE = 1;

Report this snippet  

You need to login to post a comment.