Evaluate a variable
Evaluate a variable
От:
Luís Sousa <llsousa@ualg.pt>
Дата:
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:= a; I already tried b:=EXECUTE a; without luck! Best regards, Luís Sousa
Re: Evaluate a variable
От:
Alvaro Herrera <alvherre@commandprompt.com>
Дата:
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:= 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.