how can pass a parameter to function at run time in oracle 10g developer [message #235897] |
Tue, 08 May 2007 05:44  |
habib.khan
Messages: 20 Registered: March 2007 Location: Islamabad
|
Junior Member |
|
|
hi every body,
i am using oracle 10g and i want to pass empno to a function as a parameter at run time,an input box appear,user enter empno and function use this empno to return employee salary.
my get salary function is as below.
FUNCTION get_salary(eno number) RETURN number IS
salary number(10);
BEGIN
select sal into salary from emp where empno=eno;
return salary;
END;
please help me how can solve this problem.
thanks in advance.
Muhammad Habib
[Updated on: Tue, 08 May 2007 06:03] Report message to a moderator
|
|
|
|
|
|
|