Ask a question about database table naming.

Source: Internet
Author: User
Ask a question about database table naming. For example, if the two tables are of the same nature
Table1
Table 2

Or
Table_first
Table_second

Or
TableFirst
TableSecond

Or
Table1st
Table2nd

Which of the following statements is good? is it related to non-professional?


Reply to discussion (solution)

Just clear your score.
Generally, the purpose of the table should be aware of from the table name.
If metadata (or data dictionary) technology is used, the table name should be calculated to obtain

Do not use camel case for table names, especially in PostgreSQL
If the name is to be read and identified by the program, it is recommended to use Arabic numerals

Table sharding ??? Use
Table_001
Table_002

Arabic numerals!

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.