17.20 - ODBC SQL Character Data 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

The ODBC specification supports six SQL character data types while Teradata supports three character data types. The following table shows how ODBC Driver for Teradata maps the Teradata character data type to ODBC SQL data types.

ODBC SQL Character Data Types 
Teradata Data Type ODBC SQL Data Type

Non-Unicode Session Character Set

ODBC SQL Data Type

Unicode Session Character Set

CHAR SQL_CHAR SQL_WCHAR
VARCHAR SQL_VARCHAR SQL_WVARCHAR
CLOB SQL_LONGVARCHAR SQL_WLONGVARCHAR

For additional information, see “Application Model With Single Form-of-Use” in Teradata Vantage™ - Advanced SQL Engine International Character Set Support, B035-1125.