Ali Java Development Manual learn 3 MySQL protocol

Source: Internet
Author: User
Establishment of the table of norms

1. The expression is the concept of the field, must be named using IS_XXX, the data type is unsigned tinyint (1 means yes, 0 means no).

2. Table names do not use plural nouns.

3. Disable reserved words.

4. Decimal type, the use of float and double is forbidden.

5. The name of the table is best added to the "Business noun _ table role".

6. Update Field comments when modifying fields.

7. The field allows for proper redundancy to improve performance.

8. The Sub-database table is considered when the number of single-table rows exceeds 5 million lines or if the single table exceeds 2G.

9. Suitable character storage length, not only save the database table space, save the index storage, more importantly, improve the retrieval speed.

Ali Java Development Manual learn 3 MySQL protocol

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.