mysql>
mysql> CREATE TABLE HeadOfState
-> (
-> ID INT NOT NULL,
-> LastName CHAR(30) NOT NULL,
-> FirstName CHAR(30) NOT NULL,
-> CountryCode CHAR(3) NOT NULL
-> );
Query OK, 0 rows affected (0.00 sec)
mysql>
mysql>
mysql> ALTER TABLE HeadOfState MODIFY ID BIGINT UNSIGNED NOT NULL;
Query OK, 0 rows affected (0.01 sec)
Records: 0 Duplicates: 0 Warnings: 0
mysql>
mysql> DESCRIBE HeadOfState;
+-------------+---------------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------------+---------------------+------+-----+---------+-------+
| ID | bigint(20) unsigned | NO | | NULL | |
| LastName | char(30) | NO | | NULL | |
| FirstName | char(30) | NO | | NULL | |
| CountryCode | char(3) | NO | | NULL | |
+-------------+---------------------+------+-----+---------+-------+
4 rows in set (0.00 sec)
mysql>
mysql> drop table HeadOfState;
Query OK, 0 rows affected (0.00 sec)