Hive-sql切割字符串法(列转行)

select
id,
name
from
(select 1 as id,'1,2,3,4' as name) a 
LATERAL VIEW explode(split(name,',')) temp as name 

Hive-sql切割字符串法(列转行)_第1张图片

你可能感兴趣的:(Hive,hive)