CREATE OR REPLACE FUNCTION BOLUM_ADI(P_BOLUMNO IN NUMBER) RETURN VARCHAR2
IS
WBOLUM_ADI VARCHAR2(30);
BEGIN
SELECT DEPARTMENT_NAME INTO WBOLUM_ADI FROM DEPARTMENTS
WHERE DEPARTMENT_ID = P_BOLUMNO;
RETURN(WBOLUM_ADI);
END;
and ı got this error :
PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following:;
please give me some helpful advice . whenever ı want to create a function ı got errors that ıncludes this expression : In a procedure, the RETURN clause cannot contain an expression