17.10 - Example: Creating an Instance Method Using a Multidimensional ARRAY Type and a TD_GENERAL Parameter Type - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Definition Language Syntax and Examples

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

This example duplicates Example: Creating an Instance Method Using a Multidimensional ARRAY Type and an SQL Parameter Type except that for this example, the instance method update_measures is written with a TD_GENERAL parameter style.

CREATE INSTANCE METHOD update_measures 
	( a1 source_ary)  
	RETURNS INTEGER
	FOR MEASURES_UDT
	NO SQL
	PARAMETER STYLE TD_GENERAL
	DETERMINISTIC
	LANGUAGE C
	EXTERNAL NAME 'CS!update_measures!update_measures.c!F!update_measures';
void update_measures (	
UDT_HANDLE     *thisUdt,
ARRAY_HANDLE   *aryval, 
INTEGER        *result,
char           sqlstate[6])
{
/* body function */
}