14.9.2 Specifying the Row Format for a Table 指定 表的行格式

时间:2023-12-22 14:13:44
14.9.2 Specifying the Row Format for a Table  指定 表的行格式

mysql>  SHOW TABLE STATUS\G;
*************************** 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)