Dump Table Data into CSV


/ Published in: SQL
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.