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

Teradata Vantageā„¢ - SQL Functions, Expressions, and Predicates

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1145-171K
Language
English (United States)
[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.