Pay attention to the table name when designing the SQL Server database.

Source: Internet
Author: User

I did not pay too much attention to the table name when designing the database. I designed a user, order, and modify table. I think there is no problem, you can find a problem only when using exported SQL to generate a database.

 

These table names are highlighted, and they are defined in the system. The SQL statement cannot be select * from user.

 

It can only be executed by select * from "user. It causes great inconvenience to the Development. Besides, the user table exists, but in the Manager

 

No.

 

The solution is to change the table name. Otherwise, it would be unfriendly to write "user" when writing SQL statements.

It is better to rename the table name in the Manager instead of executing exex sp_rename because the table name must be added with "" invalid.

 

 

I only hope you will pay more attention in the future and avoid unnecessary troubles.

 

 

 

 

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.