Examples: Specifying the INLINE LENGTH for an XML Type - Advanced SQL Engine - Teradata Database

XML Data Type

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-22
dita:mapPath
amr1556233250442.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1140
lifecycle
previous
Product Category
Teradata Vantageā„¢

The following examples show XML type declarations with and without the INLINE LENGTH specification.

CREATE TABLE xmlTable1(id INTEGER,
   /* non-LOB */       xml1 XML(64000));
CREATE TABLE xmlTable2(id INTEGER,
   /* non-LOB */       xml1 XML(100),
   /* LOB */           xml2 XML,
   /* LOB */           xml3 XML INLINE LENGTH 30000);

The following is exactly the same as the example for xmlTable2, but with a different syntax.

CREATE TABLE xmlTable3(id INTEGER,
   /* non-LOB */       xml1 XML(100) INLINE LENGTH 100,
   /* LOB */           xml2 XML,
   /* LOB */           xml3 XML INLINE LENGTH 30000);
CREATE TABLE xmlTable4(id INTEGER,
   /* non-LOB */       xml1 XML(30000) INLINE LENGTH 30000,
   /* LOB */           xml2 XML INLINE LENGTH 100);
CREATE TABLE xmlTable5(id INTEGER,
   /* LOB */           xml1 XML(64000) INLINE LENGTH 100);