dimanche 2 novembre 2014

Pl sql Oracle invalid use of type name or subtype name


Vote count:

0




I am trying to search an array of uppercase letter to see if a letter is in the array. But I am getting the error: Error(7,27): PLS-00330: invalid use of type name or subtype name but I cant seem to fix it.



create or replace FUNCTION fun_ISUPPER(parCharAt IN VARCHAR2)
RETURN number IS
varCharAt VARCHAR2(1) := parCharAt;
TYPE upperCharArr IS VARRAY(4) OF VARCHAR2(1);
ARRAY upperCharArr := upperCharArr('A', 'B', 'C', 'D');
BEGIN
IF varCharAt MEMBER OF upperCharArr THEN
RETURN 1;
ELSE
RETURN 0;
END IF;
END;


asked 1 min ago







Pl sql Oracle invalid use of type name or subtype name

Aucun commentaire:

Enregistrer un commentaire