Numeric Types

In SQL, numeric data types are used to store numerical values.

The specific numeric data types can vary slightly between different database systems (like MySQL, PostgreSQL, SQL Server, etc.), but here are the most common SQL numeric data types:

🔢 1. Integer Types

📐 2. Floating-Point Types

💵 3. Decimal Types

Numeric Data Type Summary

Data Type Description
INT Standard integer
SMALLINT Small integer
TINYINT Very small integer
MEDIUMINT Medium-sized integer
BIGINT Large integer
DECIMAL Fixed-point number with specified precision
NUMERIC Similar to DECIMAL
FLOAT Floating-point number
DOUBLE Double-precision floating-point number
REAL Similar to FLOAT
BIT Stores binary values

🔤 String / Character Data Types