This blog shows how to use the ASCII function to convert alphabets to ascii values numbers using SQL

Example:

SELECT ASCII('H'), ASCII('e')

Result expected would be

72 101