|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| 10/09/2009 at 10:40AM PDT, ID: 24799987 | Points: 500 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: |
CREATE OR REPLACE FUNCTION SCHEMA_A.GET_DEPT (EMP_NO varchar) RETURN NUMBER IS
DEPARTMENT NUMBER;
BEGIN
select DEPARTMENT INTO DEPARTMENT
from SCHEMA_B.EMPLOYEE_TBL
where EMP_NO = (EMP_NO);
RETURN DEPARTMENT;
EXCEPTION
WHEN NO_DATA_FOUND THEN
NULL;
WHEN OTHERS THEN
RAISE;
END GET_DEPT;
/
|
Advertisement