Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mySQL to .csv

Status
Not open for further replies.

doddo

Programmer
Feb 14, 2001
37
GB
Hi, i want to take data from mySQL and put it into a Sage accounting system. It looks like the only way to import into Sage is from a .csv text file. Can anybody think of a better way than exporting it to an Access database and then exporting to a .csv file before importing into Sage?
Rather long winded and i'd like to automate it so that it happened at the end of every day

Thanks in advance

Rich
 
Read the documentation on the SELECT INTO OUTFILE syntax at near the bottom of the page they describe how to specify exactly how you want to format your data as you export it.

This command will simply dump the data in a table to a flat textfile, with the field termination and line termination characters you specify, so it is very easy to export to a CSV-style file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top