pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Luís Sousa <llsousa@ualg.pt>
To: pgsql-sql <pgsql-sql@postgresql.org>
Subject: Evaluate a variable
Date: Fri, 26 Jan 2007 11:58:24 +0000
Message-ID: <45B9ECE0.5090007@ualg.pt> (raw)

Hi,

Is there anyway to evaluate a variable in plpgsql, like eval on PHP?
Suppose the example:

my_var:=''some value!'';
a:=''my_var'';
b:=<eval!!> a;

I already tried b:=EXECUTE a; without luck!

Best regards,
Luís Sousa




view thread (2+ messages)  latest in thread

Message-ID: <45B9ECE0.5090007@ualg.pt>
Permalink:  ../45B9ECE0.5090007@ualg.pt/
Also on:    postgresql.org/message-id/45B9ECE0.5090007@ualg.pt

 · 

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: llsousa@ualg.pt
  Subject: Re: Evaluate a variable
  In-Reply-To: <45B9ECE0.5090007@ualg.pt>

* 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