SHOW TABLE DOES在MySQL中顯示什麼資訊
MySQL中的SHOW TABLE STATUS顯示錶的NAME、ENGINE、VERSION、ROWS、CHECKSUM等 -
示例
我們首先要建立一個表。這裡,我們使用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)
廣告
資料結構
網路
RDBMS
作業系統
Java
iOS
HTML
CSS
Android
Python
C程式設計
C++
C#
MongoDB
MySQL
Javascript
PHP