INT(m), INTEGER(m): 32-bit integer (4 bytes, -2.147,483,648 to +2,147,483,647) : Integer Type « Data Type « SQL / MySQL






INT(m), INTEGER(m): 32-bit integer (4 bytes, -2.147,483,648 to +2,147,483,647)

   
mysql>
mysql>
mysql> CREATE TABLE a (
    ->  id INT NOT NULL AUTO_INCREMENT,
    ->  choice INTEGER 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

1. Integer Types in MySQL with Sizes and Ranges
2.Int value: less than and equal
3.Int value: larger and equals
4.Int value: less than
5.Int value: bigger
6.Number Data types in MySQL
7.Compare with integer literal
8.Minus a constant value