Execute dynamically generated query???

Поиск
Список
Период
Сортировка
От Unnikrishnan Menon
Тема Execute dynamically generated query???
Дата
Msg-id 008501c1952f$f00ed530$e90aa8c0@UNNIKRISHNAN
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: "SHELTON,MICHAEL (Non-HP-Boise,ex1)"
Дата:
Сообщение: Re: top?
Следующее
От: Masaru Sugawara
Дата:
Сообщение: Re: left join and where