永洪社区

标题: 截取函数求问 [打印本页]

作者: 扫地僧    时间: 2023-3-22 17:14
标题: 截取函数求问



怎么截取到第三个'-'前的所有字符串

作者: yhdata_ruby    时间: 2023-3-22 17:14
新建计算列参考https://www.yonghongtech.com/rea ... hlightsub=substring
作者: yhdata_lyaa    时间: 2023-3-22 17:18
参考substring函数
https://www.yonghongtech.com/rea ... hlightsub=substring
作者: 扫地僧    时间: 2023-3-22 17:21
yhdata_ruby 发表于 2023-3-22 17:18
新建计算列参考https://www.yonghongtech.com/real-help/Z-Suite/10.0/ch/basicfunctions.html?zoom_highli ...

不规则运算,列子里好像没有?
作者: yhdata_ruby    时间: 2023-3-22 17:23
扫地僧 发表于 2023-3-22 17:21
不规则运算,列子里好像没有?

85有的呀https://www.yonghongtech.com/rea ... hlightsub=substring
作者: 扫地僧    时间: 2023-3-22 17:26
yhdata_ruby 发表于 2023-3-22 17:23
85有的呀https://www.yonghongtech.com/real-help/Z-Suite/8.5/ch/topic393.htm?zoom_highlightsub=subst ...

我的意思是, 按这个  只能 substring(a, 0, 9) , 第二排 substring(a, 0, 7)

但是一个字段有很多值呀
作者: yhdata_ruby    时间: 2023-3-22 17:36
扫地僧 发表于 2023-3-22 17:26
我的意思是, 按这个  只能 substring(a, 0, 9) , 第二排 substring(a, 0, 7)

但是一个字段有很多值呀 ...

数据集拆分列呢
作者: 扫地僧    时间: 2023-3-22 17:44
yhdata_ruby 发表于 2023-3-22 17:36
数据集拆分列呢

拆分列不是只能第一个和最后一个吗。。。
作者: yhdata_ruby    时间: 2023-3-22 17:45
扫地僧 发表于 2023-3-22 17:44
拆分列不是只能第一个和最后一个吗。。。


这样呢



作者: DX188    时间: 2023-3-23 09:56
有个问题,是否你的字段都包含有3个及以上的“-”,如果是你可以这样写

作者: yhdata_lyaa    时间: 2023-3-23 10:32
DX188 发表于 2023-3-23 09:56
有个问题,是否你的字段都包含有3个及以上的“-”,如果是你可以这样写






欢迎光临 永洪社区 (https://club.yonghongtech.com/) Powered by Discuz! X3.4