MySQL Forums
Forum List  »  General

Re: MySQL ASCII codes
Posted by: Frederic Descamps
Date: January 09, 2019 02:08AM

Hi Cándido,

The ord() function in MySQL behaves differently regarding your charset (see

But if you want to achieve what you are trying to do, here is one method:

mysql> SELECT ord(CAST('à' AS CHAR CHARACTER SET latin1));
| ord(CAST('à' AS CHAR CHARACTER SET latin1)) |
| 224 |
1 row in set (0.00 sec)

Best regards and thank you for using MySQL!


Options: ReplyQuote

Written By
January 08, 2019 07:59PM
January 08, 2019 10:47PM
Re: MySQL ASCII codes
January 09, 2019 02:08AM

Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.