JSON Data Type | Modify JSON Columns | Teradata Vantage - Modifying JSON Columns - Advanced SQL Engine - Teradata Database

JSON Data Type

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
uwa1591040057999.ditamap
dita:ditavalPath
uwa1591040057999.ditaval
dita:id
B035-1150
lifecycle
previous
Product Category
Teradata Vantageā„¢

You can use the following statements to modify a JSON column:

  • UPDATE. You can use the UPDATE statement to modify values of a JSON column in the SET clause.
    You can only update the JSON column, not individual portions of the JSON instance. Also, when referencing a JSON column in its entirety, the input format is the same as the INSERT statement.
  • MERGE. You can use the MERGE statement to:
    • Modify a JSON column based on the WHEN MATCHED THEN UPDATE clause.
    • Insert values into a JSON column based on the WHEN NOT MATCHED THEN INSERT clause.
      The following MERGE statement clauses are supported on JSON functions and methods:
      • The ON clause can be used to condition on a JSON instance.
      • The USING clause can be used to select the JSON column value.