gpt4 book ai didi

crystal-reports - 在Crystal Report中使用子字符串

转载 作者:行者123 更新时间:2023-12-04 05:01:18 26 4
gpt4 key购买 nike

我在Crystal报表中有一个字段,其中包含以下数据:
'605 KL1-Daniel Steve'
我如何只删除'605 KL1-'并将'Daniel Steve'只留在字段中?
'-'之前的字符可能会有所不同,我希望公式会自动搜索'-',然后显示其后的所有内容。

最佳答案

MID在这里可以提供帮助:

MID(my_string, 11) // will print your string from character 11 ("D") forward

如果需要动态显示,可以将 MIDINSTR结合使用(当然,这仅在数据格式一致时才有效):
MID(my_string, (INSTR(my_string, "-") + 2))

关于crystal-reports - 在Crystal Report中使用子字符串,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2986812/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com