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 ADD Inauguration DATE 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 | int(11) | NO | | NULL | |
| LastName | char(30) | NO | | NULL | |
| FirstName | char(30) | NO | | NULL | |
| CountryCode | char(3) | NO | | NULL | |
| Inauguration | date | NO | | NULL | |
+--------------+----------+------+-----+---------+-------+
5 rows in set (0.00 sec)
mysql>
mysql> drop table HeadOfState;
Query OK, 0 rows affected (0.00 sec)