Languages
[Edit]
EN

MySQL - numeric data types

1 points
Created by:
maxsior322
347

In MySQL / MariaDB available are following numeric data types:

Type

Storage

(bytes)

Minimum value

(signed/unsigned)

Maximum value

(signed/unsigned)

Desciprtion
TINYINT1-128
0
127
255
Integer number
SMALL2-32768
0
32767
65535
Integer number
MEDIUMINT3-8388608
0
8388607
16777215
Integer number
INT4-2147483648
0
2147483647
4294967295
Integer number
BIGINT8-9223372036854775808
0
9223372036854775807
18446744073709551615
Integer number
DECIMALup to 30  Fixed-point number
FLOAT4 or 8  Floating point number
DOUBLE8  Floating point number
BIT(n + 7)/80 at position1 at position

Binary number sequence

References

  1. Data Type Storage Requirements - MySQL 8.0 Docs 
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

MySQL

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join