ASCII Function with Empty String Argument
When the ASCII function is applied to an empty string argument, what it returns varies for different data sources. For example, ASCII(‘’) returns zero as implemented in PostgreSQL, Sybase and MySQL. It returns NULL as implemented in TDV, SQL Server, Oracle, and Informix.