Change j from INT to BIGINT
mysql>
mysql>
mysql> CREATE TABLE mytbl
-> (
-> j INT,
-> c CHAR(1)
-> );
Query OK, 0 rows affected (0.00 sec)
mysql>
mysql> ALTER TABLE mytbl MODIFY j BIGINT;
Query OK, 0 rows affected (0.01 sec)
Records: 0 Duplicates: 0 Warnings: 0
mysql>
mysql> SHOW COLUMNS FROM mytbl LIKE 'j';
+-------+------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------+------------+------+-----+---------+-------+
| j | bigint(20) | YES | | NULL | |
+-------+------------+------+-----+---------+-------+
1 row in set (0.00 sec)
mysql> drop table mytbl;
Query OK, 0 rows affected (0.00 sec)
Related examples in the same category