MySQL中的SHOW TABLE DISPLAY显示哪些信息

MySQL中的SHOW TABLE DISPLAY显示哪些信息

MySQL中的SHOW TABLE STATUS显示表的名称、ENGINE、VERSION、ROWS、CHECKSUM等信息−

阅读更多:MySQL 教程

例子

首先,让我们创建一个表。这里,我们使用的是MyISAM引擎。创建表的查询如下−

mysql> create table Post_Demo
   -> (
   -> PostId int,
   -> PostName varchar(100),
   -> PostDate datetime,
   -> PRIMARY KEY(PostId)
   -> )ENGINE = MyISAM;
Query OK, 0 rows affected (0.28 sec)

现在,您可以使用SHOW TABLE命令检查表的状态。查询如下所示−

mysql> show table status where Name = 'Post_Demo'\G

输出

*************************** 1. row ***************************
Name: post_demo
          Engine: MyISAM
         Version: 10
      Row_format: Dynamic
            Rows: 0
  Avg_row_length: 0
     Data_length: 0
 Max_data_length: 281474976710655
    Index_length: 1024
       Data_free: 0
Auto_increment: 1
   Create_time: 2019-02-12 16:27:26
    Update_time: 2019-02-12 16:27:26
    Check_time: NULL
      Collation: utf8_general_ci
      Checksum: NULL
Create_options:
       Comment:
1 row in set (0.00 sec)

Python教程

Java教程

Web教程

数据库教程

图形图像教程

大数据教程

开发工具教程

计算机教程