Link to home
Start Free TrialLog in
Avatar of bigjdve
bigjdve

asked on

SQL error 1265 DAta truncated for column 'column_id' at row 655

I am getting this error when I tried to set this field (column_id, and 3 other columns) as primary key.  Why is it complaining that it is truncated.  column_id is set as int(10) and the max value thus far for that column is 7982.  It is no where near 10 integers.
ASKER CERTIFIED SOLUTION
Avatar of bigjdve
bigjdve

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
NOT NULL DEFAULT 0 might be helpful in that column definition.

Avatar of bigjdve
bigjdve

ASKER

It was not a problem any more once I ensure that field have no null value.
Avatar of bigjdve

ASKER

I find the solution on my own.