I am using Java and MySQL. I am trying to insert a value into a table.
When I insert, I get this exception:
com.mysql.jdbc.MysqlDataTruncation: Data truncation: Out of
range value for column 'idPxxx' at row 1
Only 5% of inserts produces this exception, others work. What does the error mean and how do I prevent it?
It means that the data you are storing in
idPxxxdoesn’t fit. For example a string might be too long, or a number too large.What is the datatype of
idPxxx? And what are you trying to store in it?