Get the App
SLTechnology News&Howtos  ›  Development  › 

What does the mysql vertical subtable mean?

Shulou Source: shulou.com Published: 2022-06-03 09:55:30 09月28日 Update

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!

Tags: Fields data subtables articles content commonly used larger less most examples more knowledge industry rules information information channels length questions channels references Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno MariaDB Linux Microsoft Shulou Information