Data type descriptions use these conventions:
-
Mindicates for each type:- Integer: Max display width
- Floating: Digits that can be stored (precision)
- String: Length
-
Dfor floating-point and fixed-point types.- Indicates number of digits following the decimal point.
- Max possible value is 30, but should be no greater than
M-2TODO why?
-
fsp(fractional second precision) forTIME,DATETIME, andTIMESTAMPtypes.- Represent number of digits followign the decimal point for fractional parts of seconds.
-
Square brackets indicate optional parts of type definitions.
Contents
- Numeric Data Types
- String Data Types
- Date and time data types
- JSON data type
- Spatial data types
- Data type default values
Source: https://dev.mysql.com/doc/refman/8.4/en/data-types.html