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 |
what is difference between d2k report and oracle apps report
10 Answers Seven Hills, Wipro,
what is item status? name the related table.
what is mutating table and mutating error and how to solve that?
can we use commit in trigger? If yes how?
how can we return morethan one parameters in procedure?
what is the difference between procedure and function
what are the different transaction clauses in AR?
we have 4 managers if one person logon the system automatically displays his siganature and name how?
How can u populate data into po_headers_all segment2 column?
In Oracle Apps Some tables ends with TL,VL,what is the significance of the TL and VL?
why r u transer the data base tables to flat file and what is use
please send me forms, xml pulisher questions,answers