zoukankan      html  css  js  c++  java
  • 14.9.2 Specifying the Row Format for a Table 指定 表的行格式

    14.9.2 Specifying the Row Format for a Table  指定 表的行格式
    
    mysql>  SHOW TABLE STATUSG;
    *************************** 1. row ***************************
               Name: user
             Engine: InnoDB
            Version: 10
         Row_format: Compact
               Rows: 11
     Avg_row_length: 1489
        Data_length: 16384
    Max_data_length: 0
       Index_length: 0
          Data_free: 0
     Auto_increment: NULL
        Create_time: 2016-07-04 23:39:21
        Update_time: NULL
         Check_time: NULL
          Collation: utf8_general_ci
           Checksum: NULL
     Create_options: 
            Comment: 
    1 row in set (0.00 sec)
    
    ERROR: 
    No query specified
    
    
    你指定表的row format 使用ROW_FORMAT 子句在创建表或者ALTER TABLE 语句的时候 比如:
    
    CREATE TABLE t1 (f1 int unsigned) ROW_FORMAT=DYNAMIC ENGINE=INNODB;
    
    
    InnoDB ROW_FORMAT 选项包括 COMPACT, REDUNDANT, DYNAMIC, and COMPRESSED. 
    
    
    对于InnoDB 表, 行是存储在COMPACT 格式默认(ROW_FORMAT=COMPACT) 

  • 相关阅读:
    javaMap
    javaCollections
    java线程
    mysql插入,删除
    mysql基础(1)
    javaSet,Date
    中青杯数学建模大赛
    javaJDBC
    中秋记事~~项目开发
    太高兴了,今天有人送我吃月饼!
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13350586.html
Copyright © 2011-2022 走看看