From: | "Rod Taylor" <rod(dot)taylor(at)inquent(dot)com> |
---|---|
To: | <pgsql-general(at)postgresql(dot)org> |
Subject: | Arbitrary table joins. |
Date: | 2001-02-19 17:09:26 |
Message-ID: | 04a201c09a96$b6bf5be0$2205010a@jester |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
The below is what I'd like:
select * from table natural join (select tablename from table where
table_id = 'rid');
select tablename from table where table_id = 'rid'; returns 'table2'
So, the equivalent of what I'd like in this case is: select * from
table natural join table2;
I could do this with a plpgsql function using EXECUTE but returning
the full result set will be troublesome for a while.
Till then, 2 queries...
--
Rod Taylor
There are always four sides to every story: your side, their side, the
truth, and what really happened.
Attachment | Content-Type | Size |
---|---|---|
Taylor, Rod B.vcf | text/x-vcard | 451 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2001-02-19 17:12:02 | Re: Locking |
Previous Message | Gonzalo Martinez | 2001-02-19 17:04:07 | Problem with ps under Win Nt 4 |