每天一点点,记录工作中实操可行
hive中遇到将两个或多个字段合并作为一个字段,去取其相关数据,hive中的写法是
select columna,columnb
,concat(a,'-',b,'-',c) column_c
from table_name
oralce 中是这样写的
select columna,columnb
,a||b||c column_c
from table_name
每天一点点,记录工作中实操可行
hive中遇到将两个或多个字段合并作为一个字段,去取其相关数据,hive中的写法是
select columna,columnb
,concat(a,'-',b,'-',c) column_c
from table_name
oralce 中是这样写的
select columna,columnb
,a||b||c column_c
from table_name