function

Поиск
Список
Период
Сортировка
От Normunds
Тема function
Дата
Msg-id 078001c0129a$a2354ec0$1708050a@mt.lv
обсуждение исходный текст
Ответы Re: [GENERAL] function  (Jan Wieck <janwieck@Yahoo.com>)
Re: [GENERAL] function  (Ian Turner <vectro@pipeline.com>)
Список pgsql-sql
Hi all,

how can I write function which takes text from one field, replaces
some characters and puts it in other field? I have array with old and
new values.

For example:
old array = {'r', 'Z', 'o'}
new array = {'s', 'm', 't'}
old field value = 'Zorro'
new field value which must calculate this function = 'mtsst'

This function will be used in update trigger.
Any ideas?

Normunds


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

Предыдущее
От: "Ryan Williams"
Дата:
Сообщение: Re: Viewing a function
Следующее
От: Jie Liang
Дата:
Сообщение: Re: Optimizing huge inserts/copy's