Char Function; Example Of Char - HP Neoview SQL Reference Manual

Hide thumbs Also See for Neoview SQL:
Table of Contents

Advertisement

CHAR Function

The CHAR function returns the character that has the specified code value, which must be of
exact numeric with scale 0.
CHAR is a Neoview SQL extension.
CHAR(code-value, [,char-set-name])
code-value
is a valid code value in the character set in use.
char-set-name
can be ISO88591 or UCS2. The returned character will be associated with the character set
specified by char-set-name with the DEFAULT collation.
The default is ISO88591.

Example of CHAR

Select the column CUSTNAME and return the ASCII code of the first character of the customer
name and its CHAR value:
SELECT custname, ASCII (custname), CHAR (ASCII (custname))
FROM sales.customer;
CUSTNAME
------------------
CENTRAL UNIVERSITY
BROWN MEDICAL CO
STEVENS SUPPLY
PREMIER INSURANCE
...
--- 15 row(s) selected.
(EXPR)
(EXPR)
-------
-------
67
C
66
B
83
S
80
P
...
...
CHAR Function
301

Advertisement

Table of Contents
loading

Table of Contents