ASCII
Descriptionβ
Returns the ASCII code of the first character of a string
Syntaxβ
ASCII ( <str> )
Parametersβ
Parameter | Description |
---|---|
<str> | The string whose ASCII code of the first character needs to be calculated |
Return valueβ
Parameter
Exampleβ
SELECT ASCII('1'),ASCII('234')
+------------+--------------+
| ascii('1') | ascii('234') |
+------------+--------------+
| 49 | 50 |
+------------+--------------+