I have a table with about 10K rows, which I am trying to alter so that the field fielddelimiter
is never null. I am attempting to do an alter statement, expecting a
I have just encountered this error, and it seems the solution was to use the IGNORE
statement:
ALTER IGNORE TABLE `table` CHANGE COLUMN `col` `col` int(11) NOT NULL;
Note that you may still have data truncation issues, so be sure this is the desired result. Using the IGNORE statement it will suppress the data truncated errors for NULL values in columns (and possibly other errors!!!)