NVP Function Syntax | Teradata Vantage - NVP Function Syntax - Advanced SQL Engine - Teradata Database

SQL Functions, Expressions, and Predicates

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-28
dita:mapPath
SQL_Functions__Expressions__and_Predicates.Upload_071421/djk1612415574830.ditamap
dita:ditavalPath
SQL_Functions__Expressions__and_Predicates.Upload_071421/wrg1590696035526.ditaval
dita:id
B035-1145
lifecycle
previous
Product Category
Teradata Vantageā„¢
[TD_SYSFNLIB.] NVP (
  instring,
  name_to_search
  [, name_delimiters ]
  [, value_delimiters ]
  [, occurrence ]
)

Syntax Elements

TD_SYSFNLIB
Name of the database where the function is located.
instring
The name-value pairs separated by multibyte delimiters.
name_to_search
The name whose instring value NVP returns.
name_delimiters
The multibyte delimiters used to separate name-value pairs.
Delimiters can contain any characters. They are separated from each other in the string by spaces. If a space is used as part of a delimiter, it must be escaped using a backslash (\). The maximum length of any delimiter is 10, and the maximum size of this parameter is 32.
This parameter is optional and if not specified, the default value is & (ampersand).
value_delimiters
The multibyte delimiters used to associate a name to its value in a name-value pair.
Delimiters can contain any characters. They are separated from each other in the string by spaces. If a space is used as part of a delimiter, it must be escaped using a backslash (\). The maximum length of any delimiter is 10, and the maximum size of this parameter is 32
This parameter is optional and if not specified, the default value is = (equal sign).
occurrence
The number of occurrences of name_to_search that NVP searches for.
This parameter is optional and if not specified, the default value is 1.