Created
          December 12, 2012 03:39 
        
      - 
      
- 
        Save mikedamm/4264678 to your computer and use it in GitHub Desktop. 
    MySQL INT(x) is useless
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | mysql> show create table testing; | |
| +---------+----------------------------------------------------------------------------------------------+ | |
| | Table | Create Table | | |
| +---------+----------------------------------------------------------------------------------------------+ | |
| | testing | CREATE TABLE `testing` ( | |
| `foobar` int(1) DEFAULT NULL | |
| ) ENGINE=InnoDB DEFAULT CHARSET=utf8 | | |
| +---------+----------------------------------------------------------------------------------------------+ | |
| 1 row in set (0.00 sec) | |
| mysql> insert into testing ( foobar ) values ( 99999999 ); | |
| Query OK, 1 row affected (0.01 sec) | |
| mysql> select * from testing; | |
| +----------+ | |
| | foobar | | |
| +----------+ | |
| | 99999999 | | |
| +----------+ | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment