Data types supported by MySQL (1)

Source: Internet
Author: User

1. Numeric type

Integer type Bytes Minimum value Maximum Value
tinyint 1

Signed-128

Unsigned 0

Signed 127

Unsigned 255

smallint 2

Signed-32768

Unsigned 0

Signed 32767

unsigned 65535

Mediumint 3

Signed-8388608

Unsigned 0

Signed 8388607

unsigned 1677215

int, integer 4

Signed-2147483648

Unsigned 0

Signed 2147483647

unsigned 4294967295

bigint 8

Signed-9223372036854775808

Unsigned 0

Signed 9223372036854775807

unsigned 18446744073709551615

Floating-point type Bytes Minimum value Maximum Value
Float 4 ±1.175494351e-38 ±3.402823466e+38
Double 8 ±2.2250738585072014e-308 ±1.7976931348623157e+308

Fixed-point number types Bytes Describe
Dec (m,d)/decimal (M,D) M+2 The maximum value range is the same as double, and the valid range of values for a given decimal is determined by M and D

Bit type Bytes Minimum value Maximum Value
Bit (m) 1-8 Bit (1) Bit (64)

Data types supported by MySQL (1)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.