CREATE OR REPLACE FUNCTION TamanhoString(texto char(100))
RETURN NUMBER IS tamanho NUMBER;
BEGIN
tamanho := LENGTH(texto);
RETURN tamanho;
END TamanhoString;
I need to create a function that receives text as a parameter and returns its size. The code is giving the following error:
Error: PLS-00103: Found the symbol "(" when one of the following symbols was expected:: =), default varying large character The symbol ":=" has been replaced by "