Membership Membership:
Latest New User Latest: vpros
Past 24 Hours Past 24 Hours: 0
Prev. 24 Hours Prev. 24 Hours: 0
User Count Overall: 137

People Online People Online:
Visitors Visitors: 42
Members Members: 0
Total Total: 42

NakedMCSE Computer Tech Support Forums

So you have passed all of the exams and you are now out in the real world of windows servers, linux servers and freebsd servers faced with a tech support problem you have never seen before...

Find free online tech support in the forums below, respecting that advice is free, but work beyond advice is not...

The General forum is provided for off topic discussion.

You need a user account to post - please Register or Login.

Online Tech Support Forums
 
  Forum  Open Source Tec...  MySQL Server  Exporting MySQL select query to a CSV file
Previous Previous
 
Next Next
New Post 3/23/2011 3:01 PM
Informative
  Walker
119 posts
www.lairdscomputer.com
10th Level Poster


Exporting MySQL select query to a CSV file 

To export data from a select query to a csv file, you use the following style of select query:

select * from mytable
into outfile '/var/lib/mysql/outfile.csv'
fields terminated by ','
enclosed by '"'
lines terminated by '\n';


where your output will end up in /var/lib/mysql/outfile.csv.

Walker

 
Previous Previous
 
Next Next
  Forum  Open Source Tec...  MySQL Server  Exporting MySQL select query to a CSV file
Send me One Million FREE Guaranteed Visitors