Integer to nvarchar
>>-NVARCHAR--(--integer-expression--)--------------------------><
Decimal to nvarchar
>>-NVARCHAR--(--decimal-expression--+----------------------+--)-><
'-,--decimal-character-'
Floating-point to nvarchar
>>-NVARCHAR--(--floating-point-expression--+----------------------+--)-><
'-,--decimal-character-'
Decimal floating-point to nvarchar
>>-NVARCHAR--(--decimal-floating-point-expression--+----------------------+--)-><
'-,--decimal-character-'
Character to nvarchar
>>-NVARCHAR--(--character-expression--+------------+--)--------><
'-,--integer-'
Nchar to nvarchar
>>-NVARCHAR--(--national-character-expression--+------------+--)-><
'-,--integer-'
Datetime to nvarchar
>>-NVARCHAR--(--datetime-expression--+--------------+--)-------><
'-,--+-ISO---+-'
+-USA---+
+-EUR---+
+-JIS---+
'-LOCAL-'
The schema is SYSIBM.
The function name cannot
be specified as a qualified name when keywords are used in the function
signature.
NVARCHAR can be specified only in a Unicode database
(SQLSTATE 560AA).
The NVARCHAR function returns a varying-length
national character string representation of:
- An integer number, if the first argument is a SMALLINT, INTEGER,
or BIGINT
- A decimal number, if the first argument is a decimal number
- A double-precision floating-point number, if the first argument
is a DOUBLE or REAL
- A decimal floating-point number, if the first argument is a decimal
floating-point number (DECFLOAT)
- A character string, if the first argument is any type of character
string
- An national character string, if the first argument is any type
of national character string
- A datetime value, if the first argument is a DATE, TIME, or TIMESTAMP
The NVARCHAR scalar function is a synonym for the VARGRAPHIC
scalar function.