码迷,mamicode.com
首页 > 数据库 > 详细

SQL架构信息读取

时间:2016-04-29 14:05:07      阅读:182      评论:0      收藏:0      [点我收藏+]

标签:

--架构:
select * from information_schema.SCHEMATA
--表:
select table_name from information_schema.tables
--列:
select table_name from information_schema.COLUMNS
--表约束:
select * from information_schema.TABLE_CONSTRAINTS
--键:
select * from information_schema.KEY_COLUMN_USAGE
--存储过程:
select * from information_schema.ROUTINES
--视图:
select * from information_schema.VIEWS

 

SQL架构信息读取

标签:

原文地址:http://www.cnblogs.com/blackice/p/5445645.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!