- 12.2.1 Integer Types (Exact Value) - INTEGER, INT, SMALLINT, TINYINT, MEDIUMINT, BIGINT
- 12.2.2 Fixed-Point Types (Exact Value) - DECIMAL, NUMERIC
- 12.2.3 Floating-Point Types (Approximate Value) - FLOAT, DOUBLE
- 12.2.4 Bit-Value Type - BIT
- 12.2.5 Numeric Type Attributes
- 12.2.6 Out-of-Range and Overflow Handling
MySQL supports all standard SQL numeric data types. These types
include the exact numeric data types
NUMERIC), as well as the
approximate numeric data types
DOUBLE PRECISION). The keyword
INT is a synonym for
INTEGER, and the keywords
FIXED are synonyms for
DECIMAL. MySQL treats
DOUBLE as a synonym for
DOUBLE PRECISION (a nonstandard
extension). MySQL also treats
as a synonym for
(a nonstandard variation), unless the
REAL_AS_FLOAT SQL mode is
For information about how MySQL handles assignment of out-of-range values to columns and overflow during expression evaluation, see Section 12.2.6, “Out-of-Range and Overflow Handling”.
For information about numeric type storage requirements, see Section 12.8, “Data Type Storage Requirements”.
The data type used for the result of a calculation on numeric operands depends on the types of the operands and the operations performed on them. For more information, see Section 13.6.1, “Arithmetic Operators”.