Row_format of Mysql

Source: Internet
Author: User


Mysql's row_format is in mysql. If a table does not contain varchar, text, its deformation, blob, and its deformation fields, this table is also called a static table, that is, the row_format of the table is fixed, that is, each record occupies the same bytes. Its advantage is fast reading, and its disadvantage is a waste of additional space. Www.2cto.com if a table contains varchar, text, its deformation, blob, and its deformation fields, then this table is also called a dynamic table, that is, the row_format of this table is dynamic, that is to say, the bytes occupied by each record are dynamic. Its advantages are space saving and its disadvantages increase the read time overhead. Therefore, tables with a large number of search queries generally exchange space for time and are designed as static tables. Row_format has other values: DEFAULTFIXEDDYNAMICCOMPRESSEDREDUNDANTCOMPACT www.2cto.com modifying the row format alter table table_name ROW_FORMAT = DEFAULT cause: fixed ---> dynamic: This causes CHAR to change to VARCHARdynamic ---> fixed: this will cause VARCHAR to become CHAR author Zhang weijian

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.