16.20 - Example: Select PARAMINFO from QryLogParamJSON - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ Data Dictionary

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Published
March 2019
Language
English (United States)
Last Update
2019-05-03
dita:mapPath
zzu1512081120577.ditamap
dita:ditavalPath
TD_DBS_16_20_Update1.ditaval

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       ?