Save a MySQL Query as a Tab or Comma separated file


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

Simple example of how you can output a query as


Copy this code and paste it in your HTML
  1. id,
  2. email
  3.  
  4. INTO OUTFILE '/tmp/csv_users.txt'
  5.  
  6. FROM users
  7.  
  8. ORDER BY created_at

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.