MySQL Forums
Forum List  »  Backup

Re: How to import a file in to mysql table
Posted by: Tyler Longren
Date: February 07, 2005 01:56PM

LOAD DATA LOCAL INFILE 'filename.txt' INTO TABLE `table` FIELDS TERMINATED BY '|' ENCLOSED BY '"' ESCAPED BY '\\' LINES TERMINATED BY '\r\n';

That typically works for me. I dunno as I usually terminate my fields with ";" as opposed to |.

tyler

http://longren.no-ip.org/

Options: ReplyQuote


Subject
Views
Written By
Posted
4092
February 05, 2005 07:22AM
Re: How to import a file in to mysql table
3053
February 07, 2005 01:56PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.