时间:2021-07-01 10:21:17 帮助过:6人阅读
--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‘
数据库查询表,查询表所属字段等语句
标签:count where sch rom from mat 视图 form sel