Teradata SQL and LOB Types - ODBC Driver for Teradata

ODBC Driver for Teradata® User Guide - 17.20

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
Lake
VMware
Product
ODBC Driver for Teradata
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2023-11-18
dita:mapPath
uqj1639470627591.ditamap
dita:ditavalPath
nkw1500504256726.ditaval
dita:id
ktb1507075385726
Product Category
Teradata Tools and Utilities

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))".