E ae pessoal.
Povo estou tentando escrever um codigo basico pl/sql, criei uma tabela e a populei, logo após escrevi o codigo abaixo:
DECLARE
vVALOR NUMBER (8,2);
vNOME VARCHAR2(50);
BEGIN
SELECT VALOR, NOME
INTO vVALOR, vNOME
FROM TCURSO
WHERE COD_CURSO = &COD_CURSO;
Dbms_Output.Put_Line('VALOR: '|| TO CHAR (vVALOR, ‘fm9999.99’)) ;
Dbms_Output.Put_Line('NOME: '|| (vNOME));
END;
Mas em seguida, após o F5 ocorre este erro:
ORA-06550: line 10, column 33:
PLS-00103: Encountered the symbol “TO” when expecting one of the following:
( - + case mod new null
continue avg count current max min prior sql stddev sum
variance execute forall merge time timestamp interval date
pipe
Poderiam me ajudar?