数据库 
首页 > 数据库 > 浏览文章

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

(编辑:jimmy 日期: 2024/5/20 浏览:3 次 )
把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 '%××%')
上一篇:用SQL脚本读取Excel中的sheet数量及名称的方法代码
下一篇:一个删选数据的例子,使用GROUP、DISTINCT实例解析
友情链接:杰晶网络 DDR爱好者之家 南强小屋 黑松山资源网 白云城资源网