17.10 - array_name - Advanced SQL Engine - Teradata Database

Teradata Vantageā„¢ - SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1147-171K
Language
English (United States)

C Data Type Definition

typedef int ARRAY_HANDLE;

Usage

Use the ARRAY_HANDLE data type when passing an ARRAY argument or returning an ARRAY type result.

Here is an example using an ARRAY parameter in a UDF definition and ARRAY_HANDLE in a C function declaration.

SQL Function Definition Equivalent C Function Declaration
CREATE FUNCTION F1 (
  A phonenumbers_ary)
RETURNS phonenumbers_ary
 ...;
void f1( ARRAY_HANDLE *a,
         ARRAY_HANDLE *result,
   ... )
{  ... }