Evaluate a variable - Mailing list pgsql-sql

From Luís Sousa
Subject Evaluate a variable
Date
Msg-id 45B9ECE0.5090007@ualg.pt
Whole thread Raw
Responses Re: Evaluate a variable  (Alvaro Herrera <alvherre@commandprompt.com>)
List 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



pgsql-sql by date:

Previous
From: Mario Splivalo
Date:
Subject: Re: Using Temporary Tables in postgres functions
Next
From: Andrew Sullivan
Date:
Subject: Re: LEFT Join Question