MySQL管理命令

显示所有的数据库

show databases;

选择某个数据库

use information_schema;

显示所有表的内容

show tables;

显示表VIEWS的所有信息

show columns from VIEWS;

显示表VIEWS的所有索引信息

show index from VIEWS;

显示数据库information_schema中所有表的信息

show table status from information_schema;

表名以VIEW开头的表的信息

show table status from information_schema like 'VIEW%';

加上 \G,查询结果按列打印

show table status from information_schema like 'VIEW%'\G;
posted on 2018-10-23 14:22  一小白  阅读(127)  评论(0编辑  收藏  举报