Parameter Passing Convention - Advanced SQL Engine - Teradata Database

SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-24
dita:mapPath
qwr1571437338192.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1147
lifecycle
previous
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.