Use a FOREIGN KEY constraint to define the foreign key
mysql> mysql> CREATE TABLE Orders -> ( -> OrderID SMALLINT UNSIGNED NOT NULL PRIMARY KEY, -> ModelID SMALLINT UNSIGNED NOT NULL, -> ModelDescrip VARCHAR(40), -> FOREIGN KEY (ModelID) REFERENCES Models (ModelID) ON DELETE CASCADE ON UPDATE CASCADE -> ); Query OK, 0 rows affected (0.00 sec) mysql>