获取数据库所有表 和 每张表信息
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'
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'
相关文章推荐
- 四种方式实现SQLServer 分页查询
- 盘点mysql中容易被我们误会的地方
- SpringMVC通过Redis实现缓存主页
- 解决mysql卡死的问题彻底优化mysql性能
- 微软官方SqlHelper类 数据库辅助操作类[原创]_实用技巧_脚本之家
- mysql视图
- Oracle to_char()函数的使用细则
- MySQL复制之半同步复制
- MySQL5.6 实现主从复制,读写分离,分散单台服务器压力
- scala 使用JDBC方式访问Mysql
- centos 下redis安装与使用与配置
- MyBatis的动态SQL操作--更新
- Redis代理twemproxy安装,配置,使用
- sql--表的修改
- 查看Oracle最耗性能SQL以及查看锁表进程SQL语句1和杀掉锁表进程
- MySQL数据类型
- Redis Windows下的安装使用
- MySQL的优化
- mybatis动态sql设置
- SQLServer 服务器架构迁移