Odd Harry Ophaug
Member
In Oracle 12c we can write inline functions within a select statement. When running such a select in SQL or Command Window, the statement is broken into several pieces. A simple example:
with function IC (a_ in varchar2) return varchar2 is
begin
return initcap(a_);
end;
select IC(username) from all_users;
This is broken into three pieces beacuse of the ;s, and each part of course fails.
This works in SQL*Plus if I define the SQLTERMINATOR to something different from ;. Oracle SQL Developer executed the statement without problems.
Is there a way to make PL/SQL Developer run such a command?
with function IC (a_ in varchar2) return varchar2 is
begin
return initcap(a_);
end;
select IC(username) from all_users;
This is broken into three pieces beacuse of the ;s, and each part of course fails.
This works in SQL*Plus if I define the SQLTERMINATOR to something different from ;. Oracle SQL Developer executed the statement without problems.
Is there a way to make PL/SQL Developer run such a command?