内容简介:MySQL中可以使用 show table status 查看表的状态,但是不能像select 语句选出结果那样做结果过滤。有没有办法像select语句那样过滤呢,答案是有的,就是从information_schema库的tables表中查询。如下是模仿show table status 的SQL:
MySQL中可以使用 show table status 查看表的状态,但是不能像select 语句选出结果那样做结果过滤。
有没有办法像select语句那样过滤呢,答案是有的,就是从information_schema库的tables表中查询。
如下是模仿show table status 的SQL:
SELECT table_name,Engine,Version,Row_format,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 FROM information_schema.tables WHERE Table_Schema='MyDataBaseName';
注意替换MyDataBaseName的名称为自己的库名称,这样就可以方便在Where部分添加各种条件过滤了。
以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Data Structures and Algorithms in Java
Michael T. Goodrich、Roberto Tamassia / Wiley / 2010-01-26 / USD 177.41
* This newest edition examines fundamental data structures by following a consistent object-oriented framework that builds intuition and analysis skills of data structures and algorithms * Presents ne......一起来看看 《Data Structures and Algorithms in Java》 这本书的介绍吧!