Code
CREATE OR REPLACE FUNCTION BuscaNome
RETURN t_name
IS
t_name VARCHAR(20);
BEGIN
SELECT T.DS_TURMA INTO t_name
FROM TURMA T WHERE T.CD_TURMA = 13;
RETURN t_name;
END;
Error:
Error: PL / SQL: Compilation unit analysis terminated Error (2.10): PLS-00320: the declaration of the type of this expression is incomplete or malformed