Execute dynamically generated query??? - Mailing list pgsql-sql

From Unnikrishnan Menon
Subject Execute dynamically generated query???
Date
Msg-id 008501c1952f$f00ed530$e90aa8c0@UNNIKRISHNAN
Whole thread Raw
List pgsql-sql
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.

pgsql-sql by date:

Previous
From: "SHELTON,MICHAEL (Non-HP-Boise,ex1)"
Date:
Subject: Re: top?
Next
From: Masaru Sugawara
Date:
Subject: Re: left join and where