SQLGetTypeInfo| ODBC Driver for Teradata - SQLGetTypeInfo - 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

The result set returned by SQLGetTypeInfo has an additional Teradata ODBC-specific column after the standard columns. The specific column information is listed in the following table:

Column Name Column Number (ODBC 3.X) Data Type Comments
USER_DATA_TYPE 20 Smallint Always NULL
TDODBC_ DATA_TYPE 21 Smallint not NULL Teradata ODBC-specific SQL data type code used by ODBC Driver for Teradata. If multiple database types have the same standard ODBC SQL type, then the Teradata ODBC-specific SQL data type code can be used to distinguish between the types. For an example, see Number Data Types.