Saturday, July 18, 2009

Generate .CSV file of MySQL results

SELECT foo, bar INTO OUTFILE '/some/file.csv' FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n' FROM t1 WHERE ...

No comments:

Post a Comment