Mustang Internet Services Knowledge Base Glossary    Contact Us
  Return to MustangInternetServices.com Home Page
Search  
   
Browse by Category
Mustang Internet Services Knowledge Base .: MySQL .: Working With Files .: Exporting A Table To A CSV Text File

Exporting A Table To A CSV Text File

Example of how to export a table to a CSV text file:

SELECT * INTO OUTFILE '/path/FileName.txt' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY 'n'
FROM tableName.


How helpful was this article to you?

Related Articles

article Load Data From File Into Table
 Example syntax to load CSV file:LOAD DATA...

(No rating)  2-11-2005    Views: 426   

User Comments

Add Comment
No comments have been posted.


.: Powered by Lore 1.5.2
(c) 2004-2005, Mustang Internet Services, Inc.