数据库查询表,查询表所属字段等语句

--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'

posted @ 2019-11-27 11:30  三重罗生门  阅读(158)  评论(0编辑  收藏  举报