kctigers23 Posted November 10, 2008 Share Posted November 10, 2008 Hey, I can't get the load data infile command to work to load data from a CSV file. The code is" load data infile "2004AugSep.csv" into table 2004pbp FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n' IGNORE 1 LINES; The error is Incorrect integer value: '' for column 'Comp' at row 1 the data value is going into an Int(5) column, but I've tried every thing there. The CSV for this entry is blank, so it's something like previous column,,next column thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/132150-error-incorrect-integer-value-for-column-comp-at-row-1/ Share on other sites More sharing options...
fenway Posted November 10, 2008 Share Posted November 10, 2008 Empty strings aren't valid integers... I assume you have strict mode on. Quote Link to comment https://forums.phpfreaks.com/topic/132150-error-incorrect-integer-value-for-column-comp-at-row-1/#findComment-687131 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.