SQL架构信息读取

--架构:
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

 

posted @ 2016-04-29 11:19  黑冰.org  阅读(189)  评论(0编辑  收藏  举报