From: | Yambu <hyambu(at)gmail(dot)com> |
---|---|
To: | Viswanatha Sastry <medipalli(at)yahoo(dot)com> |
Cc: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, pgsql-sql <pgsql-sql(at)lists(dot)postgresql(dot)org> |
Subject: | Re: function INPUT as whole table |
Date: | 2021-06-15 14:07:17 |
Message-ID: | CALhHtcAhzpRhwTNtVpO9HVuugY6pD=2pSF2jgzwLEOTzPCBuqw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
ok, thank you all
On Tue, Jun 15, 2021 at 4:01 PM Viswanatha Sastry <medipalli(at)yahoo(dot)com>
wrote:
> 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(dot)g(dot)johnston(at)gmail(dot)com> wrote:
>
>
>
> On Tuesday, June 15, 2021, Yambu <hyambu(at)gmail(dot)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.
>
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Дмитрий Иванов | 2021-06-15 17:40:06 | Re: function INPUT as whole table |
Previous Message | Viswanatha Sastry | 2021-06-15 14:01:39 | Re: function INPUT as whole table |