Click here to Skip to main content
15,881,413 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
when I load file in to MySQL

I got error

ERROR 1261 (01000): Row 2190679 doesn't contain data for all columns

[edit]Test: changing tags as per problem reported - http://www.codeproject.com/Messages/4977026/about-Tags-in-Ask-Question-forum.aspx[^] OriginalGriff[/edit]
Posted
Updated 10-Jan-15 2:35am
v2
Comments
CodingLover 26-Dec-14 9:44am    
How many rows you have in that table?
hareshdgr8 26-Dec-14 10:04am    
77500

1 solution

Hi,

Generally while importing an excel sheet to DB there is a chance of this issue. Lets say I am having one excel sheet where only one record is there and rest of the rows are empty. Some times when we try to import an excel sheet into DB the rows which does not have any data should be deleted manually and then it should be imported to DB, or else the database will treate the rest of the rows as valued row and try to insert into database and thus result into the same error that you are facing.

So You can delete the records if any row is not having any data or you can have a check condition in the database for the same to skip those rows.

Please follow the following link for better understanding.
Click here for link reference

Thanks
Sisir Patro
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900