首页 > 数据库技术 > 详细

SQL架构信息读取

时间:2016-04-29 14:04:52      阅读:283      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!