SQL Data Types
SQL Data Types
FLOAT/REAL
relative to the significant
digits of the number. In
other words, the decimal
point can be moved to
represent values of different
Decimal/Numeric Float/Real magnitudes.
Used for storing fixed-point numbers. It Used for storing floating-point numbers
allows you to specify the precision (total with a decimal precision.
number of digits) and scale (number of
digits after the decimal point). In this case, Float data can have
different quantities of decimals.
Example: A decimal(3,2) stores 3-digits
numbers where 2 of them are decimals. Example: A float can be 125.45689 and
also 1.25.
So I can store 1.23 but not 12.5.
CHAT GPT SAYS…
“DECIMAL is used for exact numeric representation, suitable for financial
calculations. FLOAT is an approximate numeric representation, suitable for scientific
calculations.”
DATE, TIME, DATETIME, AND
TIMESTAMP
BLOB AND CLOB
Stores binary data that comes from Stores a large amount of characters data,
images or multimedia files. It’s called such as text documents (tales, news,
BLOB because of “Binary Large articles, etc.). It’s called CLOB because
Object”. of “Character large object”.