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

Teradata Vantageā„¢ - XML Data Type

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1140-171K
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);