Variable Substitution for table name

Поиск
Список
Период
Сортировка
От Samuel J. Sutjiono
Тема Variable Substitution for table name
Дата
Msg-id 00e901c1cd34$edd88cb0$110a010a@headquarters.wcgroup.com
обсуждение исходный текст
Ответы Re: Variable Substitution for table name  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Список pgsql-general
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.
 

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: How to get the name of a table's primary key?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: problem with array of boxes