Create a table t that contains an id column that's NOT NULL and declared as a primary key by means of a PRIMAR
Y KEY clause
mysql>
mysql> CREATE TABLE t
-> (
-> id INT NOT NULL,
-> name CHAR(30) NOT NULL,
-> PRIMARY KEY (id)
-> );
Query OK, 0 rows affected (0.00 sec)
mysql>
mysql> drop table t;
Query OK, 0 rows affected (0.00 sec)
Related examples in the same category