Good Morning To
All Present here
By: Afrah and Hafeera
Today Data types in MySQL
we will Number datatype
cover
the topic
TINYINT : Stores very small whole numbers within a limited
range (e.g., -128 to 127 in Java).
SMALLINT or short: Stores a slightly larger range of whole
numbers.
INT or integer: The most common type for general-purpose
whole numbers, typically a 32-bit integer.
BIGINT or long: Used for very large whole numbers
when INT is insuffi cient, typically a 64-bit integer.
FLOAT: A single-precision, 32-bit floating-point number
(approx. 6-9 digits of precision).
DOUBLE or double precision: A double-precision, 64-bit
floating-point number, offering greater accuracy and a wider
range than FLOAT (approx. 15-17 digits of precision).
DECIMAL : This type stores an exact value and
allows the user to specify the required precision and
scale (number of digits before and after the decimal
point). It avoids the potential approximation errors
associated with FLOAT and DOUBLE.
Statistical Classification
MEDIUMINT is an integer data type specific to
database systems like MySQL and MariaDB.