Searching for Text within Oracle Stored Procedures

百般思念 提交于 2019-12-02 18:03:10
Shannon Severance
 SELECT * FROM ALL_source WHERE UPPER(text) LIKE '%BLAH%'

EDIT Adding additional info:

 SELECT * FROM DBA_source WHERE UPPER(text) LIKE '%BLAH%'

The difference is dba_source will have the text of all stored objects. All_source will have the text of all stored objects accessible by the user performing the query. Oracle Database Reference 11g Release 2 (11.2)

Another difference is that you may not have access to dba_source.

Guest1

I allways use UPPER(text) like UPPER('%blah%')

ANM KABIR

If you use UPPER(text), the like '%lah%' will always return zero results. Use '%LAH%'.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!