您的位置:首页 > 数据库

获取数据库所有表 和 每张表信息

2016-03-24 11:31 295 查看
获取所有表名

select table_name,table_type from information_schema.tables where

table_schema='asdb' and table_type='base table';

获取视图名

select table_name from information_schema.views where

table_schema='asdb'

获取所有表名和视图名

select table_name,table_type from information_schema.tables where

table_schema='asdb'

获取所有表名

select table_name,table_type from information_schema.tables where

table_schema='asdb' and table_type='base table';

获取视图名

select table_name from information_schema.views where

table_schema='asdb'

获取所有表名和视图名

select table_name,table_type from information_schema.tables where

table_schema='asdb'
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: