• 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
  • 相关阅读:
    VS2010 正则批量替换头文件路径
    VC++ 内存泄露与检测的一种方法
    命令行编译C++程序
    Link1123:转换到COFF期间失败:文件无效或损坏
    C语言基础知识
    PCL深度图像(2)
    PCL关键点(1)
    PCL采样一致性算法
    PCL滤波介绍(3)
    PCL滤波介绍(2)
  • 原文地址:https://www.cnblogs.com/reycg-blog/p/7907159.html
Copyright © 2020-2023  润新知