| From: | Sean Davis <sdavis2(at)mail(dot)nih(dot)gov> |
|---|---|
| To: | "Otto Blomqvist" <o(dot)blomqvist(at)secomintl(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org, pgsql-sql(at)postgresql(dot)org |
| Subject: | Re: [SQL] Problems with Set Returning Functions (SRFs) |
| Date: | 2005-04-11 10:07:24 |
| Message-ID: | 5ad7366b9228273de19f4173aa30c2ba@mail.nih.gov |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general pgsql-sql |
On Apr 6, 2005, at 2:53 PM, Otto Blomqvist wrote:
>
> secom=# select f1, f2, f3 from testpassbyval(1, (Select number1 from
> test));
> ERROR: more than one row returned by a subquery used as an expression
>
> This is where I fail. Am I even on the right path here ? Writing the
> actual
> parsing function will be easy once I have a working concept.
>
How about (untested):
select f1, f2, f3 from (
select testpassbyval(1,(
select number1 from test)
)
) a;
Sean
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Martijn van Oosterhout | 2005-04-11 10:28:55 | Re: What are the consequences of a bad database design (never seen that before !) |
| Previous Message | Csaba Nagy | 2005-04-11 10:07:05 | Re: Time and date functions give me headaches!! |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Dinesh Pandey | 2005-04-11 13:39:05 | How to Port Oracle's user defined "Package" into Postgres 8.0.1. |
| Previous Message | PFC | 2005-04-11 08:51:28 | Re: Getting the output of a function used in a where clause |