Not null char type column
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> 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 | |
+-------------+----------+------+-----+---------+-------+
4 rows in set (0.00 sec)
mysql>
mysql> drop table HeadOfState;
Query OK, 0 rows affected (0.00 sec)
mysql>
Related examples in the same category