Error Code: 1062. Duplicate entry '2147483647' for key

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Jump to navigation Jump to search

About

"Error Code: 1062. Duplicate entry '2147483647' for key <key name>" is an error message returned by MySQL when a query attempts to set a signed 4-byte integer field to an unsigned value that is too large to represent as a signed 4-byte integer. "2147483647" is 7F.FF.FF.FF in hexadecimal, i.e. the largest positive 4-byte signed integer.

You will get this error if you try to store 2147483648 (or any larger integer) in a 4-byte signed integer (INT(11) SIGNED) field.