clickhouse.函数.字符串
-
notEmpty(str) 判读字符是否不为空. 返回 0 或 1
-
length(str) 计算字符串长度. 一个汉字长度为 3
-
lengthUTF8(str) 计算字符串长度 一个汉字长度为 1
-
lower(str) 小写
-
upper(str) 大写
-
lowerUTF8(str) 小写
-
upperUTF8(str) 大写
-
reverse(str) 倒序字符串
-
reverseUTF8(str) 倒序字符串
-
concat(s1, s2, …) 合并多个字符串
-
substring(s, offset, length) 从第offset位置开始 长度为length的子字符串. 位置从 1 开始
-
substringUTF8(s, offset, length) 从第offset位置开始 长度为length的子字符串. 位置从 1 开始
-
appendTrailingCharIfAbsent(s, c) 没明白
-
convertCharset(s, from, to) 没明白
-
splitByChar(separator, s) 根据单个字符separator 分割字符串s
-
splitByString(separator, s) 根据字符串separator 分割字符串s
-
alphaTokens(s) 从范围a-z和A-Z中选择连续字节的子字符串。返回子字符串数组。
-
position(haystack, needle) 返回字符串needle在 字符串haystack的位置 若不存在 则返回 0
-
positionUTF8(haystack, needle) 返回字符串needle在 字符串haystack的位置 若不存在 则返回 0
-
match(haystack, pattern)
-
extract(haystack, pattern)
-
extractAll(haystack, pattern)
-
like(haystack, pattern)
-
notLike(haystack, pattern)
-
replaceOne(haystack, pattern, replacement)
-
replaceAll(haystack, pattern, replacement)
-
replaceRegexpOne(haystack, pattern, replacement)
-
replaceRegexpAll(haystack, pattern, replacement)