16.20 - Example: Overloaded Function with Different Number of Parameters - 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)

You can create the following two overloaded scalar and table functions successfully.

CREATE FUNCTION tbf (parameter_1 int)
   RETURNS int
   LANGUAGE C
   NO SQL
   SPECIFIC tbf1
   PARAMETER STYLE SQL
   EXTERNAL NAME 'CS!tbf1!tbf1.c';
CREATE FUNCTION tbf(n INTEGER,n1 INTEGER,n2 INTEGER)
   RETURNS TABLE (c1 INTEGER, c2 INTEGER, c3 INTEGER)
   LANGUAGE C
   NO SQL
   PARAMETER STYLE SQL
   EXTERNAL NAME 'CS!tbf!tbf.c';