Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Export MySQL table to CSV file?

by dug (Chaplain)
on Sep 25, 2002 at 20:46 UTC ( [id://200730]=note: print w/replies, xml ) Need Help??


in reply to Export MySQL table to CSV file?

http://www.mysql.com/doc/en/SELECT.html

In particular, look at the section on 'export_options'. The example which is pertinant is:
SELECT a,b,a+b INTO OUTFILE "/tmp/result.text" FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY "\n" FROM test_table;

hth
-- dug

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://200730]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (7)
As of 2024-04-18 08:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found