With Clause (12c) in Oracle PL SQL Interview Questions And Answers For Experience & Freshers | Interview Preparation
Oracle 12c introduced with clause in PLSQL local function which is used to improve performance of the function.
We can write function, procedure in with clause itself then we execute as a part of SQL statements. In this case procedure, function never created in database. It is part of with clause itself.
SQL> With function function_name (formal parameters)
return datatype
is/as
begin
return expression;
end(function_name);
select function_name (actual parameters) from dual;
/
Please do check our daily posts, videos for beneficial informations, in case of any additional queries please do contact us, we are happy to assist you.
https://www.youtube.com/a4uofficial
0 Comments