MySQL Forums
Forum List  »  Data Warehouse

Re: Importing data to MySQL database
Posted by: Peter Brawley
Date: January 04, 2010 10:17PM

In my favourite application language I'd write a script generator function which, given a file like this, ensures that

(i) before each (00) line there is a carriage return,

(ii) before each (NN) columnnname = column value string until the next (00) columnnname = column value string there is no carriage return,

(iii) maps each such line into an appropriately parsed INSERT command and

(iv) runs the INSERTs

PB
http://www.artfulsoftware.com

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Importing data to MySQL database
3935
January 04, 2010 10:17PM


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.