Código:
y me retorna este error:CREATE OR REPLACE TYPE alumnos_t UNDER persona_t(
horas NUMBER,
empresa ref empresa_t,
MEMBER FUNCTION restarHoras(h in number) RETURN NUMBER
);
CREATE OR REPLACE TYPE BODY alumnos_t AS
MEMBER FUNCTION restarHoras(h in number) return number is begin
SELF.horas := SELF.horas-h;
return SELF.horas;
END restarHoras;
END;
Código:
Mi intención es modificar la variable horas desde la funcion restarHoras, es eso posible?Error(3,10): PLS-00363: expression 'SELF.HORAS' cannot be used as an assignment target
Gràcias


