Numeric data types
Integers
TINYNINT(M)
M = possible length of the integerINT
BOOLEAN
: a special integer
Decimals
DOUBLE(M, D)
D = number of digits following decimal point
String data types
Variable-length strings
VARCHAR(M)
Binary Large OBject
BLOB
LONGBLOB
- Bob Loblaw
Date and Time data types
-
DATE
MySQL stores dates asYYYY-MM-DD
-
DATETIME
Can be precise to 6 decimal points asYYYY-MM-DD HH:MM:SS[.fraction]
-
YEAR
Four-digit year