aboutsummaryrefslogtreecommitdiff
path: root/sql/hive/src/test/resources/golden/udf_ascii-2-dab8656d7f001e85615442d60df4b6b3
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