16.20 - Examples: Specifying the INLINE LENGTH for an XML Type - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantageā„¢ XML Data Type

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Release Date
March 2019
Content Type
Programming Reference
Publication ID
B035-1140-162K
Language
English (United States)

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