Skip to content

ASCII

  • str: The string from which the ASCII value for the leftmost character will be returned. It can include alphanumeric or symbol characters.
SELECT ASCII('A');
65

The ASCII() function in MySQL returns the ASCII value for the specific character. In this example, ‘A’ corresponds to the ASCII value 65.