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
原文地址:https://www.cnblogs.com/blackice/p/5445645.html