From: | Richard Huxton <dev(at)archonet(dot)com> |
---|---|
To: | <sbiswas(at)cisco(dot)com>, <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: FW: Function |
Date: | 2004-02-17 19:26:35 |
Message-ID: | 200402171926.35935.dev@archonet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
On Tuesday 17 February 2004 14:41, Sumita Biswas (sbiswas) wrote:
> Is there nothing like SET NOCOUNT ON; in plpgsql
What is this supposed to do for you?
> Is there any option like SET ANSI_NULLS ON in plpgsql.
What is this supposed to do for you too?
> Do we append # before the temp table names in plpgsql, like we do for
> MSSQL ? In case no how do we create a temp table in a function in plsql?
The thing to remember with plpgsql is that it's compiled (unlike say plTcl).
This means that it translates table-names etc. into oids. So what you have to
be careful of is referring to a temporary table that is created, destroyed an
re-created (because it's oid will change).
The solution is to use the EXECUTE command to build a dynamic query. Check the
archives for plenty of other people doing this.
--
Richard Huxton
Archonet Ltd
From | Date | Subject | |
---|---|---|---|
Next Message | terry | 2004-02-17 20:05:12 | Return relation table data in a single value CSV |
Previous Message | David | 2004-02-17 19:01:51 | searching polygons |