一个table有一列是string,怎么把它split然后update到新列

请先 登录 后评论

1 个回答

haaha

可以用peach函数

def split_tbcol(sss, split_by, iloc){
return split(sss, split_by)[iloc]}

tb=table(take(2022.04.13,50) as date,take(`rr_3`hhh_1,50) as code)
update tb set hh=peach(split_tbcol{,"_",0},code)



请先 登录 后评论
  • 1 关注
  • 0 收藏,791 浏览
  • mhxiang 提出于 2022-04-13 17:47

相似问题