Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

ARRAY structure in UDF - response (1) by mbacay

$
0
0

Just to add, my ARRAY type is:
CREATE TYPE SYSUDTLIB.shot_ary  AS INTEGER ARRAY [1:4][1:4][1:4];
and it is used in a table:
CREATE TABLE seismic_data (id INTEGER,shots shot_ary);
with some sample values:
 

INSERT INTO seismic_data VALUES (1, shot_ary(1, 2));

INSERT INTO seismic_data VALUES (2, shot_ary(4,5));

INSERT INTO seismic_data VALUES(3,shot_ary(6,7));

INSERT INTO seismic_data VALUES(4,shot_ary(8,9));

INSERT INTO seismic_data VALUES(5,shot_ary(1,2,3,4,5,6));


Viewing all articles
Browse latest Browse all 27759

Trending Articles