ASCII_VAL()
ASCII code from string
SMALLINT
ASCII_VAL (ch)
| Parameter | Description |
|---|---|
ch |
A string of the |
Returns the ASCII code of the character passed in.
-
If the argument is a string with more than one character, the ASCII code of the first character is returned.
-
If the argument is an empty string, 0 is returned.
-
If the argument is
NULL,NULLis returned. -
If the first character of the argument string is multi-byte, an error is raised.