数据库查询表,查询表所属字段等语句
--sql server 数表:
select * from sysobjects where xtype='U'
--数视图:
select count(1) from sysobjects where xtype='V'
--数存储过程
select count(1) from sysobjects where xtype='P'
SELECT * FROM sysobjects WHERE (xtype = 'U')
--查询表所属列
SELECT * from INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME='SystemMasterData'