Parameter Passing Convention - Analytics Database - Teradata Vantage

SQL External Routine Programming

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2023-07-11
dita:mapPath
iiv1628111441820.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
B035-1147
lifecycle
latest
Product Category
Teradata Vantage™

External stored procedures support two types of parameter passing conventions.

Parameter Passing Convention Description
Parameter Style SQL Provides a way to pass nulls as IN or INOUT arguments and return nulls as INOUT or OUT arguments.
Parameter Style TD_GENERAL Does not accept null IN or INOUT arguments and does not return null INOUT or OUT arguments.

The parameter passing convention you use to code an external stored procedure must correspond to the parameter passing specification in the CREATE PROCEDURE statement for the external stored procedure.

IF CREATE PROCEDURE specifies … THEN use the following syntax for the function parameter list …
PARAMETER STYLE SQL or omits the PARAMETER STYLE option Syntax for Parameter Style SQL.
PARAMETER STYLE TD_GENERAL Syntax for Parameter Style TD_GENERAL.