MySQL Numeric type

Source: Internet
Author: User

Introduction of numerical types

(1) Numeric types are mainly used to store numbers, different value types provide different ranges of values, the larger the range of value can be stored, the greater the storage space required
(2) numeric types are divided into: ① integer type ② floating-point type ③ fixed-point number type

1, Integer type

Integer type Description Storage requirements Signed range of values Unsigned range of values
TINYINT A very small integer. 1 bytes -128 ~ 127 0 ~255
SMALLINT A small integer 2 bytes -32768 ~ 32767 0 ~ 65535
Mediumint A medium-sized integer 3 bytes -8388608 ~ 8388607 0 ~ 16777215
Int An integer of normal size 4 bytes -2147483648 ~ 2147483647 0 ~ 4294967295
BIGINT Large integer 8 bytes -9223372036854775808 ~ 9223372036854775807 0 ~ 18446744073709551615

MySQL Numeric type

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.