From: | Jan Wieck <JanWieck(at)Yahoo(dot)com> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | Mage <mage(at)mage(dot)hu>, Pgsql-General <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: eval in plpgsl |
Date: | 2004-04-08 14:28:04 |
Message-ID: | 40756174.4090102@Yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Bruce Momjian wrote:
> Mage wrote:
>> Hello,
>>
>> is there any variable variable syntax or function in plpgsql? I didn't
>> find it.
>>
>> I mean something like: magic(''new.'' || TG_ARGV[0]) = 5;
>
> Uh, we have EXECUTE, but I don't know if will allow you to set a local
> variable. Maybe you can do:
>
> EXECUTE SELECT ''new.''|| TG_ARGV[0] INTO new var
>
It does not. This really isn't a full blown scripting language. If one
wants that, there is PL/Tcl.
Jan
--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck(at)Yahoo(dot)com #
From | Date | Subject | |
---|---|---|---|
Next Message | Richard Huxton | 2004-04-08 14:54:55 | Re: Oid problem |
Previous Message | Sky | 2004-04-08 14:21:33 | Oid problem |