SQL server系统相关查询

查看数据库所有表和视图

select * from information_schema.TABLES 

查询某表的所有列信息

select datdatype,* from INFORMATION_SCHEMA.COLUMNS where TABLE_NAME='Area'
原文地址:https://www.cnblogs.com/Neroi/p/15646383.html