For When You Can't Have The Real Thing
[ start | index | login ]
start > mysql > CSV output

CSV output

Created by dave. Last edited by dave, 9 years and 263 days ago. Viewed 1,822 times. #1
[edit] [rdf]
labels
attachments

Comma Separated Values format for MySQL Data

mysql> SELECT * INTO OUTFILE '/tmp/result.csv' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\n' FROM response_answers;
no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt