pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Normunds <normunds@mt.lv>
To: pgsql-general@postgresql.org
To: pgsql-sql@postgresql.org
Subject: function
Date: Wed, 30 Aug 2000 17:54:51 +0200
Message-ID: <078001c0129a$a2354ec0$1708050a@mt.lv> (raw)

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




view thread (22+ messages)  latest in thread

Message-ID: <078001c0129a$a2354ec0$1708050a@mt.lv>
Permalink:  ../078001c0129a$a2354ec0$1708050a@mt.lv/
Also on:    postgresql.org/message-id/078001c0129a$a2354ec0$1708050a@mt.lv

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: normunds@mt.lv, pgsql-general@postgresql.org
  Subject: Re: function
  In-Reply-To: <078001c0129a$a2354ec0$1708050a@mt.lv>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox