SMALLINT(m): 16-bit integer (2 bytes, -32,768 to + 32,767)
mysql>
mysql> CREATE TABLE a (
-> id INT NOT NULL AUTO_INCREMENT,
-> choice SMALLINT NOT NULL,
-> ts TIMESTAMP,
-> PRIMARY KEY (id));
Query OK, 0 rows affected (0.00 sec)
mysql>
mysql> drop table a;
Query OK, 0 rows affected (0.00 sec)
mysql>
Related examples in the same category