From: Unnikrishnan Menon <unnikrishnan.menon@chennai.transys.net>
To: pgsql-sql@postgresql.org
Subject: Execute dynamically generated query???
Date: Fri, 4 Jan 2002 20:25:58 +0530
Message-ID: <008501c1952f$f00ed530$e90aa8c0@UNNIKRISHNAN> (raw)
Hi,
I am new to PostgreSQL and wish to do the following:
1. I am trying to execute a dynamically generated query within a function - Create table tablename as Select expressions .. from tablename, tablename where ......
The function on execution gives the following error: Select ....into is not yet implemented. Could anyone help me with a workaround for the function to be executed.
2. Select count(*) count from tab;
The following query gives the error Relation tab does not exists. Through documents i understand that it is not possible to use the above query. Has anybody tried a
workaround process for the above.
Any help would be welcome,
Thanx in advance,
Unnikrishnan Menon.
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: unnikrishnan.menon@chennai.transys.net
Subject: Re: Execute dynamically generated query???
In-Reply-To: <008501c1952f$f00ed530$e90aa8c0@UNNIKRISHNAN>
* 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