Re: Re: select to combine 2 tables

From: "Thomas T(dot) Thai" <tom(at)minnesota(dot)com>
To: PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Cc: wsheldah(at)lexmark(dot)com
Subject: Re: Re: select to combine 2 tables
Date: 2001-06-23 02:25:35
Message-ID: Pine.NEB.4.21.0106222125110.26141-100000@ns01.minnesota.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 22 Jun 2001, Tom Lane wrote:

> "Thomas T. Thai" <tom(at)minnesota(dot)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.

the project i'm doing this for is opensource and i need it to work in both
postgresql and mysql. the above statement wouldn't work in mysql.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Trond Eivind =?iso-8859-1?q?Glomsr=F8d?= 2001-06-23 02:42:11 Re: Re: select to combine 2 tables
Previous Message Ana Carolina Alonso de Armiño 2001-06-23 01:04:09 Re: postgres 7.1.2 with SuSE 7.1