0
|
ankit pundir · 技术社区 · 7 年前 |
![]() |
1
0
您可以使用
|
|
2
0
这是我的需求解决方案版本。如果有任何优化是可能的,那么请让我知道。
带底座
作为(
选择不同的大小写
当c.vasm像“%;%”时
然后拆分(c.vasm,“;”)
当c.vasm与“%”相似时,%'
然后拆分(c.vasm,“,”)
ELSE拆分(c.vasm,“^”)
作为零件结束
来自gcs\U阶段。apjgc\u seller\u report\u renewals c其中c.vasm不为空
)
选择
第[1]部分为空时的情况
那么
substr(修剪(零件[0]),1,instr(修剪(零件[0]),'(')-1)
其他
concat((substr(trim(part[0]),1,instr(trim(part[0]),'(')-1)),(concat(',',',(substr(trim(part[1]),1,instr(trim(part[1]),'(')-1)))
以vasm\U全名结尾,
第[1]部分为空时的情况
那么
substr(trim(part[0])、instr(trim(part[0])、'(')+1、(instr(trim(part[0])、')))-instr(trim(part[0])、'(')-1)
其他
concat((substr(trim(part[0])、instr(trim(part[0])、'(')+1、(instr(trim(part[0])、'))-instr(trim(part[0])、'(')-1))、(concat('、'、'、'(substr(trim(part[1])、instr(trim(part[1])、'(')+1、(instr(trim(part[1])、'))-instr(trim(part[1])、'(')-1())))))))
以vasm\U用户名结尾
|
![]() |
MattRgx · 配置单元中的Regexp将一列拆分为3列 2 年前 |
![]() |
mishalhaneef · 如何更新蜂箱颤振数据 3 年前 |
![]() |
Nabil · 配置单元查询数组作为字段 6 年前 |
![]() |
Pat Doyle · HiveQL-连接在Select语句上创建的列 6 年前 |
![]() |
N_M · 主键和外键约束在配置单元中如何工作? 6 年前 |