What is function?
Answers were Sorted based on User's Feedback
Answer / kiran kumar
---- is a named pl/sql block to perform a specific task, is
mainly used for calculation purpose.
---- A function is called as part of an exception.
---- Every function should return a value
Example for function
Create or replace
Function get_sal(p_id in emp.emp_no% type)
Return number
Is
v_sal emp.sal%type :=0;
Begin
Select salary into v_salary
From emp
Where emp_no = p_id;
Return v_salary
End get_sal;
End;
Output :
var g_sal number;
Exec :g_sal := get_sal(99);
Print g_salary;
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / dipa paul
To tell one sentence, function is -- which return a value
that value can be boolean,char, number and null.
We can use function in oracle form or report bulider and
stored in database.
| Is This Answer Correct ? | 1 Yes | 0 No |
how to make a parameter optional in the query?
PL/SQL stored procedure parameters?
What is Place holder Columns?
where to define interorganization transaction charges and what are the different options?
What are different execution methods of executabls?
Is PlaceHolderColumn Function or Procedure? Why we don't write any code in that?
In which directory your flatfile is given?if u connected different instance where it is find?
we have 10 records. It's occured error in 6th record how can u find and how to rectify that?
List the various types of value set.
whats the use of after parameter form and before report?
what is meant by bind parameter?
how to find the custom directory in front end.
1 Answers IBM, Sierra Atlantica,