ORD
Return the numeric value of the first character. This function returns the code for the leftmost character, supporting multi-byte characters.
Syntax
ORD(str)Description
(1st byte code)
+ (2nd byte code x 256)
+ (3rd byte code x 256 x 256) ...Examples
SELECT ORD('2');
+----------+
| ORD('2') |
+----------+
| 50 |
+----------+See Also
Last updated
Was this helpful?

