I have the requirement to call my 2nd inline function into my 1st function. I am not able to achieve this one and getting error only.
with
function add_string(p_string in varchar2) return varchar2
is
--Function to add a string
l_buffer varchar2(32767);
begin
l_buffer := p_string || ' works!';
--
return l_buffer;
--
end ;
--
function doesnt_it(p_string in varchar2) return varchar2
is
l_buffer varchar2(32767);
pp_string varchar2(32767);
begin
select add_string(p_string) into pp_string from dual;
l_buffer := pp_string || ' Doesnt it?';
--
return l_buffer;
--
end ;
--
select doesnt_it('Yes, it') as outVal
from dual
;