Comparison of NUMERIC and DECIMAL types in Mysql, numericdecimal
Decimal (numeric) is synonymous and used to precisely store values.
A decimal data type can store up to 38 numbers. All numbers can be placed on the right of the decimal point. The
MySQL's numeric data types can be roughly divided into two categories, one is an integer and the other is a floating-point or decimal. Many different subtypes are available for each of these categories, and each subtype supports data of different
Decimal (numeric) synonymous with the exact storage of numeric values.
The decimal data type can store up to 38 digits, and all numbers can be placed to the right of the decimal point. The decimal data type stores an accurate (accurate) numeric
When PHP modifies data from MySql, it is only valid for numeric operations, and non-numeric operations are invalid. what should I do ?. Problem Description: use PHP to modify data to the MySql database to add, delete, modify (the database can be
MySQL numeric data can be roughly divided into two types: one is an integer and the other is a floating point or decimal. Many different subtypes are available for each of these classes. Each subtype supports data of different sizes. MySQL allows us
Decimal (numeric) synonymous, used to store numeric values accurately.The decimal data type can store up to 38 digits, and all numbers can be placed to the right of the decimal point. The decimal data type stores an accurate (precise) representation
1.INTMySQL supports integer types in 5 , and each integer type can be divided into signed and unsigned integers.
Type
Number of bytes
TINYINT
1
SMALLINT
2
Mediumint
3
The following articles mainly describe three common types of MySQL numbers. We all know that whether it is a small free MySQL database space or a relatively large e-commerce website, for related databases, it is necessary to reasonably design the
The following describes the storage capacity and range of MySQL numeric data types for your reference. If you are interested in MySQL numeric data types, take a look.
Storage required for column typesTINYINT 1 byteSMALLINT 2 bytesMEDIUMINT 3
Concrete Example 1. PHP Server ComponentsFor beginners, it is recommended to use the integrated server component, which already includes PHP, Apache, Mysql and other services, eliminating the time spent by developers in the tedious configuration
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.