Re: function INPUT as whole table

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: function INPUT as whole table
Дата
Msg-id CAKFQuwZHBrbS89GJhZnaUjPLtYcOLkiiRSBYo=MD0uMEdJYMhw@mail.gmail.com
обсуждение исходный текст
Ответ на function INPUT as whole table  (Yambu <hyambu@gmail.com>)
Ответы Re: function INPUT as whole table  (Viswanatha Sastry <medipalli@yahoo.com>)
Re: function INPUT as whole table  (Дмитрий Иванов <firstdismay@gmail.com>)
Список pgsql-sql

On Tuesday, June 15, 2021, Yambu <hyambu@gmail.com> wrote:
Hello

Is it possible to have as input to a function , a whole table contents,  if the table is a small lookup table?

Something like this   
  
CREATE or replace function test (IN (select * from table1) ) 

No.  Function arguments are data types, not contents.  Queries go inside the function body.

David J.
 
 

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

Предыдущее
От: Yambu
Дата:
Сообщение: function INPUT as whole table
Следующее
От: Tom Lane
Дата:
Сообщение: Re: function INPUT as whole table