服务器之家:专注于服务器技术及软件下载分享
分类导航

Mysql|Sql Server|Oracle|Redis|MongoDB|PostgreSQL|Sqlite|DB2|mariadb|Access|数据库技术|

服务器之家 - 数据库 - Sql Server - 查询存储过程中特定字符的方法

查询存储过程中特定字符的方法

2020-01-15 15:32MSSQL教程网 Sql Server

这篇文章介绍了查询存储过程中特定字符的方法,有需要的朋友可以参考一下

把xx替换成具体字符,如“深圳”,sql语句如下:

复制代码代码如下:


select * from user_source t where instr(lower(t.text),'xx')>0;
select * from all_source t where t.owner<>'SYS' and instr(t.text,'××')>0; 



如果是sql server数据库,可以使用如下语句:

复制代码代码如下:


select * from sysobjects where id in(
select id from syscomments where text like '%××%')

延伸 · 阅读

精彩推荐