hive函数 -- ascii

ascii 码函数

ascii(str)

ascii(str) - returns the numeric value of the first character of str

返回 str 第一个字符的ascii 码值

 

实例:

ascii('123')  = 49

 

 

附录:

ascii 码表:

http://blog.csdn.net/lxpbs8851/article/details/11525501

你可能感兴趣的:(hive函数 -- ascii)