Heim  >  Artikel  >  Datenbank  >  Mysql中 show table status 获取表信息的方法_MySQL

Mysql中 show table status 获取表信息的方法_MySQL

PHP中文网
PHP中文网Original
2016-05-27 13:45:211872Durchsuche

使用方法

mysql>show table status;
mysql>show table status like 'esf_seller_history'\G;
mysql>show table status like 'esf_%'\G;

样例:

mysql>show table status like 'esf_seller_history'\G;

1.Name

表名称

2.Engine:

表的存储引擎

3.Version:

版本

4.Row_format

行格式。对于MyISAM引擎,这可能是Dynamic,Fixed或Compressed。动态行的行长度可变,例如Varchar或Blob类型字段。固定行是指行长度不变,例如Char和Integer类型字段。

5. Rows

表中的行数。对于非事务性表,这个值是精确的,对于事务性引擎,这个值通常是估算的。

6.Avg_row_length

平均每行包括的字节数

7.Data_length

整个表的数据量(单位:字节)

8.Max_data_length

表可以容纳的最大数据量

9.Index_length

索引占用磁盘的空间大小

10.Data_free

对于MyISAM引擎,标识已分配,但现在未使用的空间,并且包含了已被删除行的空间。

11.Auto_increment

下一个Auto_increment的值

12.Create_time

表的创建时间

13.Update_time

表的最近更新时间

14.Check_time

使用 check table 或myisamchk工具检查表的最近时间

15.Collation

表的默认字符集和字符排序规则

16.Checksum

如果启用,则对整个表的内容计算时的校验和

17.Create_options

指表创建时的其他所有选项

18.Comment

包含了其他额外信息,对于MyISAM引擎,包含了注释徐标新,如果表使用的是innodb引擎 ,将现实表的剩余空间。如果是一

个视图,注释里面包含了VIEW字样。

以上内容是小编给大家介绍的Mysql中 show table status 获取表信息的方法,更多相关内容请关注PHP中文网(www.php.cn)!

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn