Syntax - Analytics Database - Teradata Vantage

SQL External Routine Programming

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2023-07-11
dita:mapPath
iiv1628111441820.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
B035-1147
lifecycle
latest
Product Category
Teradata Vantage™
FNC_QB_Pair_t *
FNC_GetQueryBandPairs ( void            *QBandBuf,
                        FNC_QBSearch_et  SearchType,
                        int             *NumPairs )

Syntax Elements

QBandBuf
a pointer to a buffer containing the query band, where the query band can be:
  • Returned by FNC_GetQueryBand
  • Retrieved from the DBC.DBQLogTbl.QueryBand column
  • Specified by the caller
SearchType
whether FNC_GetQueryBandPairs searches for name-value pairs in the transaction, session, and/or profile query band.
FNC_QBSearch_et is defined in sqltypes_td.h and includes the following values:
  • QB_FIRST specifies to return the first unique name-value pair for each name found in the transaction, session, and profile query bands. If the transaction, session, and profile query bands contain the same name, FNC_GetQueryBandPairs returns the first name-value pair found in the query band in the following order:
    • Transaction query band
    • Session query band
    • Profile query band
  • QB_TXN specifies to return name-value pairs in the transaction query band.
  • QB_SESSION specifies to return name-value pairs in the session query band.
  • QB_PROFILE specifies to return name-value pairs in the profile query band.
NumPairs
the number of name-value pairs that FNC_GetQueryBandPairs returns.