The
ASCII function is character‑set dependent and supports multi‑byte characters. The function returns the character encoding integer value of the first character of
char_expression in the current character set. If
char_expression is a literal string, the result is determined by the character set of the SQL client. If
char_expression is a column in the database, the character set of the database determines the result.