Re: Evaluate a variable - Mailing list pgsql-sql

From Alvaro Herrera
Subject Re: Evaluate a variable
Date
Msg-id 20070126141911.GD13036@alvh.no-ip.org
Whole thread Raw
In response to Evaluate a variable  (Luís Sousa <llsousa@ualg.pt>)
List pgsql-sql
Luís Sousa wrote:
> 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!

Maybe stashing a SELECT in front?

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


pgsql-sql by date:

Previous
From: Andrew Sullivan
Date:
Subject: Re: LEFT Join Question
Next
From: "Rob V"
Date:
Subject: Re: LEFT Join Question