The loat type can be a floating-point number (that is, a decimal type), but float has a downside, and when the data you give is an integer, it is treated as an integer. So we have a natural problem in accessing the currency value, my default value
Data type
Type
Description
Bit
Integral type
The bit data type is integral, and its value can only be 0, 1, or null. This data type is used to store data with only two possible values,
FLOAT and DOUBLE types support the use of standard floating point operations for approximate calculation. The DECIMAL type is used to store precise decimals. Because the cpu does not support direct DECIMAL computing, in MySQL and later versions, the
Preface:
The cornerstone of high performance: good logic, physical design, according to the system to execute the query statement design schema
This chapter focuses on MySQL database design, introduces the difference between MySQL database design
1. Integral type
MySQL data type
Meaning (Signed)
tinyint (m)
1 byte range ( -128~127)
smallint (m)
2 byte range ( -32768~32767)
Mediumint (M)
3 byte range ( -8388608~8388607
"MySQL" High performance MySQL learning notes, fourth, schema and data type optimizationGood logical and physical design is the cornerstone of high performance, and the schema should be designed according to the query statement that the system will
Python Data Processing (required) and python Data Processing
I. Runtime Environment
1. The python version 2.7.13 Blog Code is of this version.2. System Environment: win7 64-bit System
Ii. Processing of messy text data
Some of the data is as follows.
MySql data type introduction bitsCN.com
In the past, when using the database, I did not pay much attention to the selection of the column type. now I have a time to summarize it. This article has referred to the MySql5.1 Reference Manual, MySql must
Select the optimized data typeMySQL supports a very high number of data types, and choosing the right data type is critical to gaining performance. No matter what type of data you store, here are a few simple principles that can help you make a
How to choose the right storage engineFeatures of several common storage enginesHere we focus on several common storage engines and compare the differences and recommended usage between each storage engine.Features
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.