Examples: Specifying the INLINE LENGTH for an XML Type - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
Language
English (United States)
Last Update
2024-04-03
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

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);