Standard (important) for mysql Data Types

Source: Internet
Author: User

Standard (important) for mysql Data Types

1. allowed value: the range and type of values in a field are allowed to determine which data type is the most direct factor to add to this field.

2. storage efficiency: it is also important to consider the possible value range of a field and select an appropriate data type with proper size according to this range, especially when processing the value type.

3. Format and display requirements: another important factor affecting field type selection is the application format and display requirements of data stored in the field.

4. Data Processing Requirements: Data Type Selection should also consider the requirements of data operations and application processing. For example, some types are more suitable for accelerating data operations than others.

5. sorting, indexing, and comparison requirements: If you want different criteria to sort all values in a column, then we need to select a type that can effectively execute these functions and has the maximum flexibility. Adding indexes to corresponding fields can accelerate the search speed. The comparison type should also be used. Make sure that the data types used support comparison and are compatible with each other.

Related Article

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.