Doug Dalton's technology and other stuff....
__________
|[][][] []\__
|Shortblog |
|_/-\_____/-\_/
0 0
Whats Here:
Home
|
Coding
|
Mobile
|
Random
|
System / Network Projects
|
About The Bus
|
Contact
--
RSS Feed
(
?
) --
Get back on the bus
Wednesday, August 2, 2006
How to export MYSQL to CSV
Simply execute
SELECT <fields or *> INTO OUTFILE '/tmp/result.text'
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
FROM <table> WHERE <condition>
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment