17.20 - Teradata SQL and LOB Types - ODBC Driver for Teradata

ODBC Driver for Teradata® User Guide

Product
ODBC Driver for Teradata
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2022-06-21
dita:mapPath
uqj1639470627591.ditamap
dita:ditavalPath
nkw1500504256726.ditaval

Table columns containing LOB data can be created using a Create Table SQL statement in the following manner.

CREATE TABLE FOO (	
     C01 INTEGER,
     C02 BLOB,
     C03 CLOB);

The CONVERT function of ODBC Driver for Teradata supports BLOB and CLOB data types.

CONVERT will map

"{fn CONVERT(value_exp, SQL_LONGVARBINARY)}" to
"(value_exp (BLOB))"

and

"{fn CONVERT(value_exp, SQL_LONGVARCHAR)}" to "(value_exp(CLOB))".