I'm using MySQL to store a 20-digit ID number. When I query the database with the following query, I get the following error.
Query:
UPDATE tablename SET columnname = 59641217344615859740;
Error:
Error Code: 1264. Out of range value for column 'columnname' at row 1
Table Info:
Engine: InnoDB
Row Format: Dynamic
Table Collation: utf8mb4_general_ci
Column Info:
Type: BIGINT(255)
Nullable: Yes
Privileges: Select, Insert, Update, References
What am I doing wrong? Is there something wrong with my query? Maybe with the table or column settings? Most others who have this error just aren't using a column type such as BIGINT but I am. An answer is much appreciated. Thanks!