The ORD() function works just like the ASCII() function except that it also supports multibyte characters
mysql> To use the ORD() function, specify a string (which can include numerals), as shown in the following example: mysql> mysql> mysql> SELECT ORD(37); +---------+ | ORD(37) | +---------+ | 51 | +---------+ 1 row in set (0.00 sec) mysql>