mysql show table status

1. How to use

SHOW TABLE STATUS [FROM db_name] [LIKE 'pattern']

 

1. Description

[FROM db_name] is optional, indicating which database to query the table information under.

[LIKE 'pattern'] is optional, indicating which specific table names to query.

 

If the above two parameters are not included, query all tables under the current library

 

example:

show table status;

show table status from iop_dev_monitor;

show table status like 'am_organ';

-- like supports fuzzy matching of table names

show table status from iop_dev_monitor like 'mon%';

 




 

 

 

Property description:

1.Table_Name  

       table name

2.Engine:

       storage engine for the table

3.Version:

       Version

4.Row_format

       line format. For the MyISAM engine, this could be Dynamic, Fixed or Compressed. Dynamic rows have variable row lengths, such as Varchar or Blob type fields. Fixed line refers to the constant line length, such as Char and Integer type fields.

5. Rows

       The number of rows in the table. For non-transactional tables this value is exact, for transactional engines this value is usually estimated.

6.Avg_row_length

       Average number of bytes included in each line 

7.Data_length

       The amount of data in the entire table (unit: bytes)

8.Max_data_length

      The maximum amount of data a table can hold

9.Index_length

      The amount of space the index occupies on disk 

10.Data_free

     Fragment size (after deleting data, it will still continue to occupy space)

11.Auto_increment

     The value of the next Auto_increment

12.Create_time

     table creation time

13.Update_time

     The last update time of the table

14.Check_time

     Use the check table or myisamchk tool to check the most recent time of the table

15.Collation

     Default character set and character collation for tables

16.Checksum

If enabled, the checksum when computed over the contents of the entire table

17.CREATE_OPTIONS

Refers to all other options at table creation time

18.TABLE_COMMENT

Table Notes

 

 

 

 

 

 

 


 

 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326266636&siteId=291194637