17.10 - Example: Select PARAMINFO from QryLogParamJSON - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - Data Dictionary

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Administration
Programming Reference
Publication ID
B035-1092-171K
Language
English (United States)

This example returns the PARAMINFO information for each parameter in the JSON document in a row. This returns the name, type, position, and value for each parameter in the parameterized request.

select QueryID, RowNum, ParamJSON.ParamInfo from QryLogParamJSON;

Result:

d
QueryID             RowNum  ParamJSON.ParamInfo
------------------  ------- -------------------------------------------
307190733539634351  1       [{"Name":"x","Type":"INTEGER","Size":4,"Position":1}]
307190733539634351  2       ?