0
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 a text as a parameter and returns its size. The code is giving the following error:
Error: PLS-00103: Found symbol "(" when one of the following symbols was expected: := ) default Varying large character The symbol ":=" has been replaced by "(" to continue.
You are reinventing the wheel! Just use Length directly in your application
– Confundir