export mysql data to csv format


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



Copy this code and paste it in your HTML
  1. SELECT * INTO OUTFILE '/tmp/stat.csv' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\n' FROM template_stats ORDER BY used_count DESC,favorite_count DESC;

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.