Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the design specifications of mysql table

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly introduces what are the design specifications of the mysql table. It is very detailed and has a certain reference value. Friends who are interested must read it!

1. The number of single instance tables must be controlled within 2000.

2. The number of sub-tables must be controlled within 1024.

3. The table must have a primary key. It is recommended to use UNSIGNED integers as the primary key.

Potential pit: delete the non-primary key table, if it is the master-slave schema of row mode, it will be hung in the library.

4. The use of foreign keys is prohibited. If integrity is to be guaranteed, it should be achieved through the application.

Example

Create table class (major varchar (16) comment 'professional', name char (8) comment 'class name', nums int comment 'number'); above is all the content of this article "what are the design specifications of mysql table". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 231

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report