Re: Re: select to combine 2 tables - Mailing list pgsql-general

From Tom Lane
Subject Re: Re: select to combine 2 tables
Date
Msg-id 5971.993246162@sss.pgh.pa.us
Whole thread Raw
In response to Re: select to combine 2 tables  ("Thomas T. Thai" <tom@minnesota.com>)
Responses Re: Re: select to combine 2 tables  ("Thomas T. Thai" <tom@minnesota.com>)
List pgsql-general
"Thomas T. Thai" <tom@minnesota.com> writes:
>> Use a union query:
>>
>> select rec_id, path, '' as link, name from cat_cat
>> UNION
>> select rec_id, path, link, name from cat_alias

> there is no way to do this in a generic DBI way? i need for this to work
> across diff kind of DBs.

Huh?  That *is* the generic, fully-SQL-standard way.

            regards, tom lane

pgsql-general by date:

Previous
From: Vince Vielhaber
Date:
Subject: Re: web site suggestion
Next
From: Tom Lane
Date:
Subject: Re: Multiple Indexing, performance impact