clickhouse.函数.字符串

clickhouse.函数.字符串

  1. notEmpty(str) 判读字符是否不为空. 返回 0 或 1

  2. length(str) 计算字符串长度. 一个汉字长度为 3

  3. lengthUTF8(str) 计算字符串长度 一个汉字长度为 1

  4. lower(str) 小写

  5. upper(str) 大写

  6. lowerUTF8(str) 小写

  7. upperUTF8(str) 大写

  8. reverse(str) 倒序字符串

  9. reverseUTF8(str) 倒序字符串

  10. concat(s1, s2, …) 合并多个字符串

  11. substring(s, offset, length) 从第offset位置开始 长度为length的子字符串. 位置从 1 开始

  12. substringUTF8(s, offset, length) 从第offset位置开始 长度为length的子字符串. 位置从 1 开始

  13. appendTrailingCharIfAbsent(s, c) 没明白

  14. convertCharset(s, from, to) 没明白

  15. splitByChar(separator, s) 根据单个字符separator 分割字符串s

  16. splitByString(separator, s) 根据字符串separator 分割字符串s

  17. alphaTokens(s) 从范围a-z和A-Z中选择连续字节的子字符串。返回子字符串数组。

  18. position(haystack, needle) 返回字符串needle在 字符串haystack的位置 若不存在 则返回 0

  19. positionUTF8(haystack, needle) 返回字符串needle在 字符串haystack的位置 若不存在 则返回 0

  20. match(haystack, pattern)

  21. extract(haystack, pattern)

  22. extractAll(haystack, pattern)

  23. like(haystack, pattern)

  24. notLike(haystack, pattern)

  25. replaceOne(haystack, pattern, replacement)

  26. replaceAll(haystack, pattern, replacement)

  27. replaceRegexpOne(haystack, pattern, replacement)

  28. replaceRegexpAll(haystack, pattern, replacement)

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值