Create CSV from MySQL


/ Published in: MySQL



Copy this code and paste it in your HTML
  1. SELECT a,b,c FROM my_table INTO OUTFILE '/ca.csv' FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n';

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.