MySQL Forums
Forum List  »  Other Migration

Import from Text-File
Posted by: Matthias Karl
Date: July 13, 2008 03:47PM

Hi

I'm trying to import data from a bunch of text files which are all in one directory. Each file has the following format (without the ""):

Line 1: "Link_Id:"
Line 2 - n: User_Id,Value,Date
Line n+1: "Link_Id:"
Line n+1 - m: User_Id,Value,Date
Line m1+: "Link_Id:"
etc.

What's the quickest way to import these files?

I've got two tables. One with the Link_Id and the table where I'd like to import these records in the format link_id, user_id, value, date

Any hint highly appreciated.

Best regards
Matthias

Options: ReplyQuote


Subject
Views
Written By
Posted
Import from Text-File
9578
July 13, 2008 03:47PM


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.