regexp_split_to_table(str,str1)

regexp_split_to_array(str,str1)

split_part(str,str1,取第几部分)

 

select regexp_split_to_table('F:\QH本部文件\一套表部署相关\test.sh','\\') 炸裂函数--返回数据集( 正则切割)

012.PGSQL-split大全集regexp_split_to_table、regexp_split_to_array、split_part

 

 


select  regexp_split_to_array('F:\QH本部文件\一套表部署相关\test.sh','\\' )   -- 返回数组 

012.PGSQL-split大全集regexp_split_to_table、regexp_split_to_array、split_part

 

 

select (regexp_split_to_array('F:\QH本部文件\一套表部署相关\test.sh','\\' ))[2]  -- 返回数组,取数组某个元素( 正则切割)

select split_part('F:\QH本部文件\一套表部署相关\test.sh','\',2)        -- 按字符匹配切割,取第几部分

012.PGSQL-split大全集regexp_split_to_table、regexp_split_to_array、split_part

 

 


QH本部文件

相关文章:

  • 2021-08-08
  • 2021-07-25
  • 2022-12-23
  • 2021-11-21
  • 2021-09-15
  • 2022-12-23
  • 2021-10-06
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-24
  • 2021-07-25
  • 2022-01-29
  • 2022-12-23
  • 2021-07-01
相关资源
相似解决方案