From: Samuel J. Sutjiono <ssutjiono@wc-group.com>
To: pgsql-general@postgresql.org
To: pgsql-sql@postgresql.org
Subject: Variable Substitution for table name
Date: Sat, 16 Mar 2002 16:52:54 -0500
Message-ID: <00e901c1cd34$edd88cb0$110a010a@headquarters.wcgroup.com> (raw)
Hello all,
Does anybody know whether I can do variable substitution in PostgreSQL function ???
create function Test(text) returns text as '
DECLARE
NewView ALIAS for $1;
BEGIN
For rec_set IN SELECT DeptdID, VendorName
from NewView where (DeptID = iDeptID)
I appreciate any help very much.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: ssutjiono@wc-group.com, pgsql-general@postgresql.org
Subject: Re: Variable Substitution for table name
In-Reply-To: <00e901c1cd34$edd88cb0$110a010a@headquarters.wcgroup.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox