Syntax - Advanced SQL Engine - Teradata Database

SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
rin1593638965306.ditamap
dita:ditavalPath
rin1593638965306.ditaval
dita:id
B035-1147
lifecycle
previous
Product Category
Teradata Vantage™
void
FNC_GetDistinctValue ( UDT_HANDLE  udtHandle,
                       void       *returnValue,
                       int         bufSize,
                       int        *length )

Syntax Elements

udtHandle
the handle to a distinct UDT that is defined to be an input parameter to a UDF, UDM, or external stored procedure.
returnValue
a pointer to a buffer that FNC_GetDistinctValue uses to return the value of the distinct type.
bufSize
the size in bytes of the returnValue buffer.
length
the size in bytes of the value that FNC_GetDistinctValue returns in returnValue.
For character data types, the length includes the size of any null termination characters.