I want to get the type of varray store elements through the type attribute or ANY work around.
for example, our type is defined as
CREATE TYPE "READINGS" AS VARRAY (200) OF NUMBER(21, 6);
(readings are varray with elements of type number(21,6) )
READINGS - a column in the INTERVALS table. INTERVALS is the central table, and we have batch processes on INTERVALS that perform sql storage procedures. In the storage procedure, we have a mapping of declarations with hard-coded variables of type READING type type VArray, which is NUMBER(21, 6) , for example, the storage procedure has variable declarations, such as
CONSUMPTION NUMBER(21, 6);
when the definition of Varray changes, or varray is discarded and recreated with different sizes and precision, ex instead of number(21,6) changes to number(25,9) , we need to change the variable declarations in all package storage procedures. All I'm looking for is declaring a CONSUMPTION variable, see VArray Element Type. I want something like this
CONSUMPTION INTERVALS.READINGS.COLUMN_TYPE%TYPE;
(I want something like this, refer to the type of elements stored in varray)
source share