JSON Data Type | JSON Type and SQL Procedures | VantageCloud Lake - Using the JSON Type with Procedures (SQL Form) - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
Language
English (United States)
Last Update
2024-04-03
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

You can create stored SQL procedures that contain one or more JSON data type parameters. IN, OUT, and INOUT parameters can be JSON types.

You can also create stored SQL procedures that contain one or more local variables that are JSON data types. You can use the DEFAULT clause with the declaration of these local variables:
  • DEFAULT NULL
  • DEFAULT value

If you specify DEFAULT value, you can use a JSON constructor expression to initialize the local variable.

You can use the stored procedure semantics, including cursors, to access a value, name/value pair, or nested documents structured as objects or arrays. You can use this with the JSON methods and functions that allow JSONPath request syntax for access to specific portions of a JSON instance.