I am trying to find a query which will return all the string inside all the packages and procedures like like '2%'
. For example in dynamic query
WHEN SUBSTR(S.project,0,1) LIKE ''2%'' THEN ''newProject''
and like in normal query
WHERE B.project LIKE '2%'
I tried with this query
select *
from user_source u
where u.type in ('FUNCTION', 'PACKAGE','PACKAGE BODY', 'TRIGGER','PROCEDURE')
and upper(u.text) like upper('%LIKE%')
But I am unable to find a query which can give a proper result for like '2%'
in both dynamic and static query.