SQLColumns - ODBC Driver for Teradata

ODBC Driver for Teradata User Guide

Product
ODBC Driver for Teradata
Release Number
16.10
Published
May 2017
Language
English (United States)
Last Update
2018-07-11
dita:mapPath
smj1488824663219.ditamap
dita:ditavalPath
Audience_PDF_product_legacy_odbc_include.ditaval
dita:id
B035-2526
lifecycle
previous
Product Category
Teradata Tools and Utilities

SQLColumns has additional Teradata-specific columns in the result set as listed in the following table.

Additional SQLColumns Teradata ODBC-specific Columns 
Column Name Column Number (ODBC 3.X) Data Type Comments
LABEL 19 Varchar (256)

See (1) at end of table

Returns the column label (Teradata title) if one is provided for the column or null.
FORMAT 20 Varchar(30) Returns the Teradata format for a column or null.
CHAR_TYPE 21 Varchar(30) Returns a value describing character type.

Examples include: LATIN, KANJI1, UNICODE, and so on

TDODBC_DATA_TYPE 22 Smallint not NULL Teradata ODBC-specific SQL data type code used by the ODBC driver. 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.
(1) Varchar(256) if EON enabled, otherwise Varchar(60).