Answers:
它的列多于SHOW TABLE STATUS;但是有窍门:
SELECT * FROM information_schema.tables WHERE table_schema = DATABASE();
更新2011-06-07 19:02
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 = DATABASE();
如果您设置当前数据库,这些查询将起作用。
您还可以对特定数据库进行硬编码:
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 = 'mysql';
您可以使用此查询来显示所有信息架构。
SELECT * FROM information_schema.tables WHERE table_schema = DATABASE();
或速记:
显示表状态,例如“ tableName”