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 does the mysql vertical subtable mean?

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

Share

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

Editor to share with you what the mysql vertical sub-table refers to, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

1. Vertical subtable is based on column fields. Generally speaking, when there are more fields in the table, or when there are fields with larger data and longer length, we split the fields that are not commonly used or with a large amount of data into the extended table.

This avoids the "spread" problem caused by too much data when querying.

2. The segmentation rules are generally not commonly used or a large amount of field data to do cutting.

Example

Mysql > desc user +-+ | Field | Type | Null | Key | Default | Extra | +- -- +-+ | id | int (10) unsigned | NO | PRI | NULL | auto_increment | | group_id | int (10) unsigned | NO | | 0 | | | username | varchar (32) | NO | MUL | | nickname | varchar (50) | NO | MUL | | password | varchar (32) | NO | | salt | varchar (30) | NO | | | email | varchar | NO | MUL | | mobile | varchar (11) | NO | MUL | | avatar | varchar (255) | NO | | birthday | | | date | NO | | NULL | | prevtime | int (10) unsigned | NO | | 0 | | logintime | int (10) unsigned | NO | | 0 | | loginip | varchar (50) | NO | | | loginfailure | tinyint (1) unsigned | NO | | 0 | | joinip | varchar (50) | NO | | jointime | int (10) unsigned | NO | | 0 | | createtime | int (10) unsigned | NO | | 0 | | | updatetime | int (10) unsigned | NO | | 0 | | all the contents of the article "what does the vertical table of mysql refer to"? Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more 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: 0

*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