Example: Creating an Instance Method Using a One-Dimensional ARRAY Type and a TD_GENERAL Parameter Type - Teradata Vantage - Analytics Database

SQL Data Definition Language Syntax and Examples

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2025-11-22
dita:mapPath
jco1628111346878.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
mdr1472255012272
lifecycle
latest
Product Category
Teradata Vantage™

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

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