SERPland Oracle, PL/SQL, PHP, Autos, Bungalow-Hotels and more …

4Jun/070

pl/sql integer stack with object types

In the object oriented word, an "intStack" is pretty well known. But how can I do this with Oracles pl/sql?
Just use an object type:


CREATE or replace TYPE IntArray AS VARRAY(50) OF INTEGER;
/
CREATE or replace TYPE IntStack_O AS OBJECT (
maximalSize INTEGER