您的位置:首页 > 数据库 > SQL

SQL架构信息读取

2016-04-29 11:19 513 查看
--架构:
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: