後の例で使用するテーブルを作成して、データを取り込みます。
CREATE TABLE JSONDocs( JSONDocId INTEGER, jsnCol JSON(10000), site VARCHAR(200), country VARCHAR(200) ) UNIQUE PRIMARY INDEX (JSONDocId); INSERT INTO JSONDocs VALUES('1', NEW JSON('{"employees" : {"company" : "Teradata","info" : [ {"id" : 1, "name" : "Cameron", "dept" : "engineering"}, {"id" : 2, "name" : "Justin","dept" : "engineering"} ]}}', LATIN),'HYD','USA'); INSERT INTO JSONDocs VALUES('2', NEW JSON('{"employees" : {"company" : "Teradata","info" : [ {"id" : 3, "name" : "Madhu", "dept" : "engineering"}, {"id" : 4, "name" : "Srini","dept" : "engineering"} ]}}', LATIN),'HYD','USA'); CREATE TABLE jsonshred.Teradata_Employees( rowIndex INTEGER, empId INTEGER, empName varchar(30), company varchar(30), dept varchar(10), jsonDocId INTEGER, site varchar(10), country varchar(10));