MySQL Forums
Forum List  »  Newbie

Re: import csv/txt to database
Posted by: khanh khanh
Date: January 05, 2012 09:39AM

@laptop alias:
Thank you for you suggestion. Again, I just do experience, success and fail so many times :). I think that the " make mysql confused but sometime it can work.

I think that my data excel sheet files are so complicated that I need to revise it before come back to this topic with more information for you.

@bilal shajahan:
I have try your suggestion, but it seems that mysql cannot work with other delimiters(?). I have try with the delimiter *. And mysql return with the error "invalid integer *0*" (I changed my query to
enclosed by '*'
).

After investigate my csv file again, I think that this file is too long (sometime, the row is truncated). After copy its content to the .txt file, it seems work well. However, this method is not stable.

Thank you for you help

Regards,
Khanh

Options: ReplyQuote


Subject
Written By
Posted
January 04, 2012 10:37PM
January 05, 2012 01:12AM
January 05, 2012 01:18AM
January 05, 2012 03:38AM
January 05, 2012 03:43AM
January 05, 2012 05:14AM
January 07, 2012 04:40AM
Re: import csv/txt to database
January 05, 2012 09:39AM


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.