Database design database, data table and field naming summary

Source: Internet
Author: User

Database naming rules:

Named according to the actual meaning of the project.

Data table naming rules:

1. The names of the data tables are mostly in the plural form of nouns and are lowercase;

2. Use the prefix "Table_" as far as possible;

3. If the table name of the data table is made up of multiple words, try to connect it with an underscore, but do not exceed 30 characters, and if more than 30 characters are used, shorten the name of the table by using an abbreviation;

Field naming rules:

1. First name the field as far as possible lowercase, and the use of meaningful words;

2. Use the prefix, the prefix as far as possible with the table "the first four letters + underscore composition";

3. If the field name consists of multiple words, use an underscore to connect and, once more than 30 characters, shorten the length of the field name with an abbreviation;

View naming rules:

1. Use the prefix "View_" as far as possible;

2. If you create a view that involves more than one data table, you must list all the table names and, if they are longer than 30 characters, simplify the table names and connect them with underscores;

Primary key naming rules:

1. The primary key begins with "Pk_", followed by the name of the table where the primary key is located;

2. No more than 30 characters, try to use lowercase English words;

Database design database, data table and field naming summary

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.