17.20 - SQLColAttribute - 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

SQLColAttribute returns information about columns in a result set. The fields listed in this table contain important LOB-specific information.

Field Identifier Value
SQL_DESC_DISPLAY_SIZE CLOB = 2097088000

BLOB = 4194176000

SQL_DESC_NULLABLE “No”
It is set to No because of the restriction on the use of LOB NULL values in SQLPutData.
SQL_DESC_SEARCHABLE SQL_FALSE
BLOB and CLOB columns cannot be used in ORDER BY and in a WHERE clause.
SQL_DESC_TYPE SQL_LONGVARBINARY for BLOB columns

SQL_LONGVARCHAR for CLOB columns