ASCII(x) is a string function that converts a character string x with the code attribute ASCII or UNICODE (if this is ASCII data) to ASCII data.
|
Result of the Function ASCII(x) |
Code attribute for x is |
ASCII(x) is a character string in ASCII notation |
x is a NULL value |
The ASCII functions are useful when ASCII code is to be used for sorting or comparison purposes.
Output of a sorted result table in ASCII order:
SELECT ASCII(name) FROM...WHERE...ORDER BY 1