首页 > 其他分享 >clickhouse 字符串搜索正则匹配函数

clickhouse 字符串搜索正则匹配函数

时间:2022-12-03 13:44:05浏览次数:36  
标签:ckhelloworldhellospark -- 正则 clickhouse 字符串 position match select

-- position:显示hello在字符串第一个出现的位置。

select position('ckhelloworldhellospark','hellow') AS positionSearch;

-- match:匹配到了则返回1,否则返回0

select match('ckhelloworldhellospark','hello') AS matchSearch;

 

标签:ckhelloworldhellospark,--,正则,clickhouse,字符串,position,match,select
From: https://www.cnblogs.com/thxj/p/16947500.html

相关文章