Re: instr detail

Поиск
Список
Период
Сортировка
От Ramesh T
Тема Re: instr detail
Дата
Msg-id CAK8Zd=uaZ_6tiwyQu2GBKnd3vhFFwahf4ZmoedFppzy9Ku8nWg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: instr detail  (Ramesh T <rameshparnanditech@gmail.com>)
Список pgsql-general

On Thu, Jul 30, 2015 at 7:38 PM, Ramesh T <rameshparnanditech@gmail.com> wrote:
select position('.' in '.T.homas')
result
--------
1
it returns first postion.but I need last occurence of ' . ' .
actual result 
------
3
any help..?appreciated.


On Thu, Jul 30, 2015 at 5:00 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
Melvin Davidson <melvin6925@gmail.com> writes:
> Based om the definition of Oracle instr(), the equivalent PostgreSQL
> function would be
> position(substring in string).

See http://www.postgresql.org/docs/9.4/static/plpgsql-porting.html
particularly the "appendix" at the bottom.  I'm not sure that code
is still the best way to do it (it's very old), but it's there.

                        regards, tom lane


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

Предыдущее
От: Ramesh T
Дата:
Сообщение: Re: instr detail
Следующее
От: Tom Lane
Дата:
Сообщение: Re: user connection not recorded?