blob: 87ae6b33499c47d8fbb91f389ea0226c3014450b (
plain) (
blame)
1
2
3
4
5
6
|
ascii(str) - returns the numeric value of the first character of str
Returns 0 if str is empty or NULL if str is NULL
Example:
> SELECT ascii('222') FROM src LIMIT 1; 50
> SELECT ascii(2) FROM src LIMIT 1;
50
|