Skip to content

Instantly share code, notes, and snippets.

@alex-oliveira
Created January 13, 2016 21:09
Show Gist options
  • Save alex-oliveira/bd29da61292c4835f78d to your computer and use it in GitHub Desktop.
Save alex-oliveira/bd29da61292c4835f78d to your computer and use it in GitHub Desktop.
===========================================================================
MySQL
===========================================================================
TINYINT (--128 a 127)(0 a 255)
BOOL e BOOLEAN = TINYINT(1)
SMALLINT (-32.768 a 32.767)(0 a 65.535)
MEDIUMINT (-8.388.608 a 8.388.607)(0 a 16.777.215)
INT (-2.147.483.648 a 2.147.483.647)(0 a 4.294.967.295)
INTEGER = INT
BIGINT (-9.223.372.036.854.775.808 a 9.223.372.036.854.775.807)(0 a 18.446.744.073.709.551.615)
FLOAT (7,4) -> -999,9999
CHAR (0 a 255)
VARCHAR (0 a 65.535)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment