当前位置:Gxlcms > 数据库问题 > 数据库查询哪个对像里面包含什么字段

数据库查询哪个对像里面包含什么字段

时间:2021-07-01 10:21:17 帮助过:4人阅读

数据库查询哪个对像里面包含什么字段

select *
from sysobjects o, syscomments s
where o.id = s.id
and text like ‘%text%‘
and o.xtype = ‘P‘

text换成需要查的字段

 

数据库查询哪个对像里面包含表
select o.name from sys.all_sql_modules s,sysobjects o where definition like ‘%表名%‘ and o.id = s.object_id

表名换成需要查的表名

数据库查询哪个对像里面包含什么字段

标签:object   数据库   nbsp   _id   cts   sql_mod   comm   comment   def   

人气教程排行