zoukankan      html  css  js  c++  java
  • information_schema資料庫表信息

    /*information_schema*/
    /*字符集*/
    SELECT * FROM information_schema.CHARACTER_SETS C;
    SELECT * FROM information_schema.COLLATION_CHARACTER_SET_APPLICABILITY C;
    SELECT * FROM information_schema.COLLATIONS C;
    /*不詳*/
    SELECT * FROM information_schema.COLUMN_PRIVILEGES C;
    /*字段欄位*/
    SELECT * FROM information_schema.`COLUMNS` C;
    /*引擎*/
    SELECT * FROM information_schema.ENGINES E;
    /*事件*/
    SELECT * FROM information_schema.`EVENTS` E;
    /*不詳*/
    SELECT * FROM information_schema.FILES F;
    SELECT * FROM information_schema.GLOBAL_STATUS G;
    SELECT * FROM information_schema.GLOBAL_VARIABLES G;
    SELECT * FROM information_schema.KEY_COLUMN_USAGE K;
    SELECT * FROM information_schema.PARTITIONS P;
    /*引擎版本*/
    SELECT * FROM information_schema.PLUGINS P;
    /*進程列表*/
    SELECT * FROM information_schema.`PROCESSLIST` P;
    /*分析*/
    SELECT * FROM information_schema.PROFILING P;
    /*約*束/*/
    SELECT * FROM information_schema.REFERENTIAL_CONSTRAINTS R;
    /*PROCEDURE AND FUNCTION*/
    SELECT * FROM information_schema.ROUTINES R;
    /*不詳細*/
    SELECT * FROM information_schema.SCHEMA_PRIVILEGES S;
    /*DATABASE*/
    SELECT * FROM information_schema.SCHEMATA S;
    /*會話狀態*/
    SELECT * FROM information_schema.SESSION_STATUS S;
    /*會*話變量/*/
    SELECT * FROM information_schema.SESSION_VARIABLES S;
    /*統計信息*/
    SELECT * FROM information_schema.STATISTICS S;
    /*約*束/*/
    SELECT * FROM information_schema.TABLE_CONSTRAINTS T;
    /*表的特權*/
    SELECT * FROM information_schema.TABLE_PRIVILEGES T;
    /**/
    SELECT * FROM information_schema.`TABLES` T;
    /*确發器*/
    SELECT * FROM information_schema.TRIGGERS T;
    /*系統用戶權限*/
    SELECT * FROM information_schema.USER_PRIVILEGES U;
    /*視圖*/
    SELECT * FROM information_schema.VIEWS V;

    官方資料:http://dev.mysql.com/doc/refman/5.1/zh/information-schema.html

  • 相关阅读:
    js数组直接赋值会导致一个数组改变,另一个数组会随之改变(解决办法)
    css兼容性问题
    12种CSS BUG解决方法与技巧
    js的运算小数点的问题
    DataTable相关操作,筛选,取前N条数据,去重复行,获取指定列数据
    js得到区域长宽
    DataView.RowFilter筛选DataTable中的数据
    图片加载问题
    kissy延迟加载demo
    解决css兼容性
  • 原文地址:https://www.cnblogs.com/Athrun/p/information_schema.html
Copyright © 2011-2022 走看看