Monday 28 November 2022

Hive: ascii: Get the ascii value of first character in a string

Signature

ascii(string str)

Convert the String first character to numeric ASCII value.

hive> SELECT ascii('ABC');
OK
_c0
65
Time taken: 0.039 seconds, Fetched: 1 row(s)

 

Previous                                                    Next                                                    Home

No comments:

Post a Comment