zoukankan      html  css  js  c++  java
  • mysql查看整库个表详情

                                                                                                                                                                                  information_schema.tables字段说明

    字段
    含义
    Table_catalog
    数据表登记目录
    Table_schema
    数据表所属的数据库名
    Table_name
    表名称
    Table_type
    表类型[system view|base table]
    Engine
    使用的数据库引擎[MyISAM|CSV|InnoDB]
    Version
    版本,默认值10
    Row_format
    行格式[Compact|Dynamic|Fixed]
    Table_rows
    表里所存多少行数据
    Avg_row_length
    平均行长度
    Data_length
    数据长度
    Max_data_length
    最大数据长度
    Index_length
    索引长度
    Data_free
    空间碎片
    Auto_increment
    做自增主键的自动增量当前值
    Create_time
    表的创建时间
    Update_time
    表的更新时间
    Check_time
    表的检查时间
    Table_collation
    表的字符校验编码集
    Checksum
    校验和
    Create_options
    创建选项
    Table_comment
    表的注释、备注
    1、use information_schema;  
    2、select table_name,table_rows,ENGINE,table_type,Avg_row_length,Data_length,Max_data_length,Index_length,Data_free from tables where TABLE_SCHEMA = 'databasename' order by table_rows desc;  
     
    //碎片整理
    OPTIMIZE TABLE tablename
  • 相关阅读:
    数据结构 B/B+树
    Hadoop的目录结构
    安装JDK
    OSTEP-projects concurrency-webserver
    第二十四章(制作HTTP服务器端)学习笔记
    day4_生成小数的程序
    day4_用集合生成8位密码的程序
    day4_集合操作
    day3_homework
    day6_random模块的用法、break和continue
  • 原文地址:https://www.cnblogs.com/dawuge/p/9046709.html
Copyright © 2011-2022 走看看