How to find the first and last occurrences of a specific character inside a string in PostgreSQL

前端 未结 7 1165
闹比i
闹比i 2021-01-11 20:26

I want to find the first and the last occurrences of a specific character inside a string. As an example, consider a string named \"2010-####-3434\", and suppose the charact

7条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-11 20:42

    I do not know how to do that, but the regular expression functions like regexp_matches, regexp_replace, and regexp_split_to_array may be an alternative route to solving your problem.

提交回复
热议问题