translate function

Поиск
Список
Период
Сортировка
От Don V. Soledad
Тема translate function
Дата
Msg-id 5.2.0.9.0.20030502112838.02e48e50@localhost
обсуждение исходный текст
Ответы Re: translate function  (Steve Crawford <scrawford@pinpointresearch.com>)
Список pgsql-general
good day!

how could i use the function translate to output the replacement of the
exact occurrence of the 2nd parameter?

for instance,
    select translate('Juan dela Cruz C/O ABC Co.','C/O','c/o');
gives
             translate
    ----------------------------
     Juan dela cruz c/o ABc co.

i would like the output to be "Juan dela Cruz c/o ABC Co." instead of "Juan
dela cruz c/o ABc co." could i do this with the above function, or are
there any functions that could do this?

thank you very much!


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

Предыдущее
От: Mark Kirkwood
Дата:
Сообщение: Re: qsort (was Re: Solaris)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Updating a table which is null doesn't work?