NVP Function Syntax | Teradata Vantage - NVP Function Syntax - Analytics Database - Teradata Vantage

SQL Functions, Expressions, and Predicates

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2024-01-12
dita:mapPath
obm1628111499646.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
kby1472250656485
lifecycle
latest
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.