Consider the following 2-D ARRAY data type and table.
CREATE TYPE shot_ary AS VARRAY(1:50)(1:50) OF INTEGER; CREATE TABLE seismic_table ( id INTEGER, shots shot_ary);
The table is populated with the following values:
/* The first 2 elements are populated; the rest are uninitialized. */ INSERT INTO seismic_table VALUES (1, shot_ary(11, 12)); /* Empty ARRAY instance */ INSERT INTO seismic_table VALUES (2, shot_ary()); /* Update empty ARRAY instance such that element  is set to a value; Then elements  and  are set to NULL, the rest are uninitialized */ UPDATE seismic_table SET shots = 1133 WHERE id = 2;
The following query removes all populated elements from the shots array, leaving all elements of the array in an uninitialized state.
SELECT id, shots.ODELETE() FROM seismic_table;
The following is the result of the query.
ID shots.ODELETE() -- --------------- 1 () 2 ()