Defining Primary Keys
mysql>
mysql> CREATE TABLE Orders
-> (
-> OrderID SMALLINT UNSIGNED NOT NULL PRIMARY KEY,
-> ModelID SMALLINT UNSIGNED NOT NULL,
-> ModelDescrip VARCHAR(40)
-> );
Query OK, 0 rows affected (0.01 sec)
mysql>
mysql>
mysql> drop table Orders;
Query OK, 0 rows affected (0.00 sec)
Related examples in the same category