SELECT name
from sysobjects o,syscomments s
where o.id=s.id
and text LIKE '%text%'
and o.xtype='p'
from sysobjects o,syscomments s
where o.id=s.id
and text LIKE '%text%'
and o.xtype='p'
本文介绍了一种使用SQL查询技术从系统对象表和注释表中筛选特定类型(如文章)的内容,并通过LIKE操作符搜索包含特定文本的记录。查询示例展示了如何连接两个表并过滤出符合指定条件的数据。
1万+
542

被折叠的 条评论
为什么被折叠?