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

2022-05-17 数据库
  • 文章介绍
数据库查询哪个对像里面包含什么字段语句写法:
 
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
select o.name from sys.all_sql_modules s,sysobjects o where definition like '%表名%' and o.id = s.object_id
 
表名换成需要查的表名

上一篇:MySQL创建用户与授权方法

下一篇:没有了

91短视频模板,累计帮助5000+客户企业成功建站,为草根创业提供助力!

立刻开启你的建站之旅