INTEGER(4) ZEROFILL : Int « Data Type « SQL / MySQL






INTEGER(4) ZEROFILL

      
mysql>
mysql> CREATE TABLE WIDTH (C4 INTEGER(4) ZEROFILL)
    -> ;
Query OK, 0 rows affected (0.00 sec)

mysql> INSERT INTO WIDTH VALUES (1)
    -> ;
Query OK, 1 row affected (0.00 sec)

mysql> INSERT INTO WIDTH VALUES (200);
Query OK, 1 row affected (0.00 sec)

mysql>
mysql>
mysql> drop table width;
Query OK, 0 rows affected (0.00 sec)

mysql>

   
    
    
    
    
    
  








Related examples in the same category

1.Int(11) not null
2.Default null value for Int type column
3.The width specification is most often used with zerofill
4.Compare with integers
5.INT UNSIGNED
6.How MySQL deals with non-exist number