16.20 - Syntax - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
16.20
Release Date
April 2020
Content Type
Programming Reference
Publication ID
B035-1147-162K
Language
English (United States)
void
FNC_GetDistinctValue ( UDT_HANDLE  udtHandle,
                       void       *returnValue,
                       int         bufSize,
                       int        *length )
UDT_HANDLE udtHandle
the handle to a distinct UDT that is defined to be an input parameter to a UDF, UDM, or external stored procedure.
void *returnValue
a pointer to a buffer that FNC_GetDistinctValue uses to return the value of the distinct type.
int bufSize
the size in bytes of the returnValue buffer.
int *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.