From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | Adam Rich <adam(dot)r(at)sbcglobal(dot)net> |
Cc: | postgresql Forums <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: calling a function over several rows |
Date: | 2009-11-17 06:17:02 |
Message-ID: | 162867790911162217n77cd3148i1048bc753ff0b1a8@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
2009/11/17 Adam Rich <adam(dot)r(at)sbcglobal(dot)net>:
> Hello,
> There is an existing function which takes an integer and returns a record.
> I need to call this function with every integer in a table. Is there a
> simple shortcut for doing this?
>
> I'm looking for something like:
>
> select f.*
> from function(t.value) f, table t
>
Hello,
attention, relation databases isn't spreadsheet. There isn't any
shortcut. You can write function based on information_schema.colums
that helps with generating SQL statement.
Regards
Pavel Stehule
> Thanks,
> Adam
>
>
>
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>
From | Date | Subject | |
---|---|---|---|
Next Message | Nathan Jahnke | 2009-11-17 06:34:01 | plperl: spi_query_prepared/spi_fetchrow versus spi_exec_prepared: memory? |
Previous Message | Merlin Moncure | 2009-11-17 06:15:43 | Re: calling a function over several rows |