17.00 - Example: Select PARAMINFO from QryLogParamJSON - Teradata Database

Teradata Vantage™ - Data Dictionary

prodname
Advanced SQL Engine
Teradata Database
vrm_release
17.00
created_date
June 2020
category
Administration
Programming Reference
featnum
B035-1092-170K

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       ?