Mega Code Archive

 
Categories / MySQL / Data Type
 

CREATE TABLE statement including two column definitions, SMALLINT data type and INT data type

mysql> mysql> mysql> CREATE TABLE Inventory     -> (     ->     ProductID SMALLINT(4) UNSIGNED ZEROFILL,     ->     Quantity INT UNSIGNED     -> ); mysql> mysql> drop table Inventory; Query OK, 0 rows affected (0.00 sec)