网络编程
位置:首页>> 网络编程>> 数据库>> 数据库查询哪个对像里面包含什么字段方法语句

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

作者:大米的世界  发布时间:2024-01-24 10:32:56 

标签:数据库,查询字段

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


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

表名换成需要查的表名

来源:https://www.cnblogs.com/chenqingbin/p/11320144.html

0
投稿

猜你喜欢

手机版 网络编程 asp之家 www.aspxhome.com