11.5 CONTAINSSTRING 和 CONTAINSSTRINGEXACT
FIND和SEARCH函数可以查找指定字符串所在的位置,如果你只需要检查字符串是否被包含,可以使用 CONTAINSSTRING 和 CONTAINSSTRINGEXACT,它们只进行逻辑判断,计算效率更高。## CONTAINSSTRING
CONTAINSSTRING (
- EVALUATE
- ROW(
- “Case 1”,CONTAINSSTRING(“abcd”,”bc”),
- “Case 2”,CONTAINSSTRING(“abcd”,”BC”),
- “Case 3”,CONTAINSSTRING(“abcd”,”a*d”),
- “Case 4”,CONTAINSSTRING(“abcd”,”ef”) 运算结果| [Case 1] | [Case 2] | [Case 3] | [Case 4] | | :—-: | :—-: | :—-: | :—-: | | TRUE | TRUE | TRUE | FALSE |
CONTAINSSTRINGEXACT
CONTAINSSTRINGEXACT (