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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exporting as fixed length file 1

Status
Not open for further replies.

ianicr

IS-IT--Management
Nov 4, 2003
230
GB
Hi all
I have an address db stored in mysql. I have no problems exporting as a csv file but need to export it as fixed width fields with no delimiters etc. Anyone know if theres a way to do this in MySQL?
Thanks
 
You can pad the fields with blanks to a fixed width then specify terminiated by '' in your outfile statement
 
Is there an easy way of doing this? and could you please let me know the syntax you would use?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top