DB inside naming specification

Source: Internet
Author: User

A few days ago when modifying DB table, someone had suggested, for example:

ALTER TABLE partially_shipment   ADD CONSTRAINT FOREIGN KEY (modified_user_id)   REFERENCES USERS (user_id)

Such a statement, where the fk_users405 is today to say the name of some of the problems, from the previous xfk_partially_shipment to the above written. Because it is the DBA's naming convention that exists within the system, it is equivalent to the company's code convention. In this case, the answer is this:

Select *  from where  like ' %company% ';


First can follow to inherit the existing, followed by the number such as fk_users405 the inside of the 405, this is our own add, but add the time is generally the first to find the maximum value of the system, and then add more than 10.

Do not know or to ask AH.

DB inside naming specification

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.