Re: postgres function

Поиск
Список
Период
Сортировка
От Ramesh T
Тема Re: postgres function
Дата
Msg-id CAK8Zd=vQi56xc240WN+tHOnGj7gEkZSfw=-mKncDg7zJDZcOyg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: postgres function  ("David G. Johnston" <david.g.johnston@gmail.com>)
Ответы Re: postgres function
Список pgsql-general
 select position('-' in '123-987-123')
position
---
4
But I want second occurrence,
position
-------------
8

plz any help..?



On Thu, Oct 15, 2015 at 12:54 AM, David G. Johnston <david.g.johnston@gmail.com> wrote:
On Wed, Oct 14, 2015 at 9:38 AM, Ramesh T <rameshparnanditech@gmail.com> wrote:
Hi All,
          Do we have  function like  regexp_substr in postgres..?

in oracle this function seach the - from 1 to 2 and return result,
regexp_substr(PART_CATG_DESC,'[^-]+', 1, 2)

​Maybe one of the functions on this page will get you what you need.


David J.



В списке pgsql-general по дате отправления:

Предыдущее
От: anj patnaik
Дата:
Сообщение: question
Следующее
От: Ramesh T
Дата:
Сообщение: Re: postgres function