FNC_TblOpGetAttributeByNdx Syntax - Teradata Vantage - Analytics Database

SQL External Routine Programming

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2025-03-30
dita:mapPath
iiv1628111441820.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
qnu1472247494689
lifecycle
latest
Product Category
Teradata Vantage™
int
FNC_TblOpGetAttributeByNdx(FNC_TblOpHandle_t  *handle,
                           int                 index,
                           void              **valueptr,
                           int                *null_ind,
                           int                *length);

Syntax Elements

handle
the handle to the current read context.
For details about the FNC_TblOpHandle_t structure, see Table Operator Interface Functions.
index
the index of an attribute. The range of values is from 0 to i-1, where 0 is the index of the first attribute.
valueptr
location of pointer to the attribute value to be returned.
null_ind
whether the attribute is null. -1 indicates null and 0 indicates not null.
length
the size in bytes of the value pointed to by *valueptr. For character varying data types, the length includes the 2 byte length field.