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

admin 2014年5月2日00:04:29MSSQLSERVER评论1,405 次浏览阅读模式


把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 '%××%')

相关文章
weinxin
我的微信
微信扫一扫
admin
  • 本文由 发表于 2014年5月2日00:04:29
  • 转载请务必保留本文链接:https://anyun.org/a/jishuguanzhu/database/mssqlserver/2014/0502/342.html

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: