Evaluate a variable

From: Luís Sousa <llsousa(at)ualg(dot)pt>
To: pgsql-sql <pgsql-sql(at)postgresql(dot)org>
Subject: Evaluate a variable
Date: 2007-01-26 11:58:24
Message-ID: 45B9ECE0.5090007@ualg.pt
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Andrew Sullivan 2007-01-26 12:58:35 Re: LEFT Join Question
Previous Message Mario Splivalo 2007-01-26 10:51:45 Re: Using Temporary Tables in postgres functions