ascii
The ascii function is used to return the ASCII code of the first character of the string str.
Syntax
ascii(string )
Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| str | Yes | STRING | If the input is of type BIGINT, DOUBLE, DECIMAL, or DATETIME, it is automatically converted to STRING type before evaluation. For example, ABC. |
Return Values
Returns a value of type BIGINT.
- If str is not of type STRING, BIGINT, DOUBLE, DECIMAL, or DATETIME, an error is returned.
- If str is NULL, NULL is returned.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot