Hi Tom,
I have the following piece of code:
merge /*+ WITH_PLSQL */ into test a
using (
with function to_upper(val varchar2) return varchar2 is
begin
return upper(val);
end;
select to_upper(c2) as c2 from test
) b
on (upper(a.c1) = b.c2)
when matched then
update set a.c3 = upper(a.c1)
Especially I didn't put any ending char in the end (neither ";", nor "/").
The script works very nice only when I am ending it with "/".
When I end the script with ";", I receive the following error: ORA-00933: SQL command not properly ended
In order to pass over compilation, I can use a dynamic SQL but I want to compile it into a procedure.
Please advise how to write the code in order to be compilable.
Thank you,