Re: function INPUT as whole table
От | Viswanatha Sastry |
---|---|
Тема | Re: function INPUT as whole table |
Дата | |
Msg-id | 600227525.301090.1623765699598@mail.yahoo.com обсуждение исходный текст |
Ответ на | Re: function INPUT as whole table ("David G. Johnston" <david.g.johnston@gmail.com>) |
Ответы |
Re: function INPUT as whole table
|
Список | pgsql-sql |
You can send it as a json object from App. in PostgreSQL it will be string datatype as parameter and you can insert into a temp table with json function.
Thanks & Regards
Viswanatha Shastry M.
Hyderabad,
Phone Mobile : 9493050037
On Tuesday, 15 June, 2021, 06:11:20 pm IST, David G. Johnston <david.g.johnston@gmail.com> wrote:
On Tuesday, June 15, 2021, Yambu <hyambu@gmail.com> wrote:
HelloIs it possible to have as input to a function , a whole table contents, if the table is a small lookup table?Something like thisCREATE 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 по дате отправления: