Data types in MySQL
Certainly! MySQL supports various data types that you can use to define columns in your tables. Here's a list of commonly used data types in MySQL: Numeric Data Types 1. INT or INTEGER: A standard integer that can store values from -2147483648 to 2147483647. - Example: `INT` 2. TINYINT A very small integer that can store values from -128 to 127. - Example: `TINYINT` 3. SMALLINT: A small integer that can store values from -32768 to 32767. - Example: `SMALLINT` 4. MEDIUMINT: medium-sized integer that can store values from -8388608 to 8388607. - Example: `MEDIUMINT` 5.BIGINT:A large integer that can store values from -9223372036854775808 to 9223372036854775807. - Example: `BIGINT` 6. DECIMAL or NUMERIC: Exact numeric data type where you specify the precision (total number of digits) and scale (number of digits after the decimal point). - Example: `DECIMAL(10, 2)` (allows up to 10 digits with 2 decimal places) 7. FLOAT: A floating-point number that stores approximate numeric values. -