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

Hide thumbs Also See for Neoview SQL:
Table of Contents

Advertisement

ASCII Function

The ASCII function returns the integer that is the ASCII code of the first character in a character
string expression associated with the ISO8891 character set.
ASCII is a Neoview SQL extension.
ASCII (character-expression)
character-expression
is an SQL character value expression that specifies a string of characters. See
Expressions" (page

Example of ASCII

Select the column JOBDESC and return the ASCII code of the first character of the job description
:
SELECT jobdesc, ASCII (jobdesc)
FROM persnl.job;
JOBDESC
-----------------
MANAGER
PRODUCTION SUPV
ASSEMBLER
SALESREP
...
--- 10 row(s) selected.
208).
(EXPR)
--------
77
80
65
83
...
"Character Value
ASCII Function
289

Advertisement

Table of Contents
loading

Table of Contents