CREATE OR REPLACE FUNCTION MESSITEST."PROT_GEN" (name_seq IN VARCHAR2) RETURN NUMBER IS
aNumber NUMBER ;
BEGIN
SELECT name_seq.NEXTVAL into aNumber from dual;
RETURN aNumber;
EXCEPTION
WHEN OTHERS THEN
RETURN null;
END PROT_GEN;
/
That gives me an error on select statement.
How can I say to evaluate the variable name_seq?
aNumber NUMBER ;
BEGIN
SELECT name_seq.NEXTVAL into aNumber from dual;
RETURN aNumber;
EXCEPTION
WHEN OTHERS THEN
RETURN null;
END PROT_GEN;
/
That gives me an error on select statement.
How can I say to evaluate the variable name_seq?