Re: Re: select to combine 2 tables

Поиск
Список
Период
Сортировка
От Thomas T. Thai
Тема Re: Re: select to combine 2 tables
Дата
Msg-id Pine.NEB.4.21.0106222125110.26141-100000@ns01.minnesota.com
обсуждение исходный текст
Ответ на Re: Re: select to combine 2 tables  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Re: select to combine 2 tables  (teg@redhat.com (Trond Eivind Glomsrød))
Re: Re: select to combine 2 tables  (Alex Pilosov <alex@pilosoft.com>)
Список pgsql-general
On Fri, 22 Jun 2001, Tom Lane wrote:

> "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.

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.


В списке pgsql-general по дате отправления:

Предыдущее
От: Ana Carolina Alonso de Armiño
Дата:
Сообщение: Re: postgres 7.1.2 with SuSE 7.1
Следующее
От: teg@redhat.com (Trond Eivind Glomsrød)
Дата:
Сообщение: Re: Re: select to combine 2 tables