pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Wilton <wilton.wonrath@microwork.inf.br>
Cc: pgsql-sql@postgresql.org
Subject: Re: Function Doubt
Date: Thu, 27 Jan 2005 17:13:41 +0000
Message-ID: <41F92145.40603@archonet.com> (raw)
In-Reply-To: <41F9259A.2080402@microwork.inf.br>
References: <41F9259A.2080402@microwork.inf.br>

Wilton wrote:
>       StrCampo = ''new.'' || qCampos.attname;
>       StrInsert = StrInsert || virgula || StrCampo || '' - '';
>    End Loop;
> 
>    Return new;
> End;
> 
> What i need to do for the variable StrCampo returns to me "SP", "RJ", i 
> mean, return a value inserted into the field.
> I do not want to use static command new.campo1, new.campo2....

Ah - you can't. Not in plpgsql, anyway. You should perhaps look at pltcl 
or plperl.

--
   Richard Huxton
   Archonet Ltd



view thread (2+ messages)  latest in thread

Message-ID: <41F92145.40603@archonet.com>
Permalink:  ../41F92145.40603@archonet.com/
Also on:    postgresql.org/message-id/41F92145.40603@archonet.com

 · 

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: dev@archonet.com, wilton.wonrath@microwork.inf.br
  Subject: Re: Function Doubt
  In-Reply-To: <41F92145.40603@archonet.com>

* 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