mysql 中显示 table 的基本信息

mysql> show table status like 'j_position' \G
*************************** 1. row ***************************
           Name: j_position
         Engine: InnoDB
        Version: 10
     Row_format: Dynamic
           Rows: 652798
 Avg_row_length: 393
    Data_length: 256622592
Max_data_length: 0
   Index_length: 11026432
      Data_free: 319815680
 Auto_increment: 668390
    Create_time: 2017-11-27 14:30:45
    Update_time: 2017-11-27 12:02:49
     Check_time: NULL
      Collation: utf8_general_ci
       Checksum: NULL
 Create_options: 
        Comment: 省市县镇村数据
1 row in set (0.00 sec)
  • Name 表名
  • Engine 表使用的存储引擎
  • RowFormat 行的格式,如果行内使用了变长的类型,就是 Dynamic
  • Rows 表当前的行数
  • Avg_row_length 平均每行占多少 bytes
  • Data_length 整个表的大小,单位字节
  • Index_length 索引数据占多少字节
  • Data_free 占用了,但还没有使用的字节数
  • Auto_increment 下一个 Auto_increment 的值(id)
  • Create_time 表的创建时间
  • Update_time 更新时间
  • Collation 默认字符集
  • Create_options 表格创建时的选项
  • Comment 表格 comment

转载于:https://www.cnblogs.com/reycg-blog/p/7907159.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值