MySQL Forums
Forum List  »  Newbie

Re: Load data infile help
Posted by: Barry Galbraith
Date: May 17, 2014 02:39AM

AFAIK every row in your CSV file has to have the same number of fields.

As a workaround, you might be able to open your CSV with something like Excel, then export it with NULL for the empty fields so that every row has the same number of fields, even if some are NULL.

You could then load the new file.

Good luck,
Barry.

Options: ReplyQuote


Subject
Written By
Posted
May 16, 2014 09:16AM
Re: Load data infile help
May 17, 2014 02:39AM
May 19, 2014 12:10PM


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.