Re: SQL Join - MySQL/PostgreSQL difference?

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Brice Ruth <brice(at)webprojkt(dot)com>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: SQL Join - MySQL/PostgreSQL difference?
Date: 2001-02-06 00:11:41
Message-ID: Pine.LNX.4.30.0102060108580.762-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Brice Ruth writes:

> SELECT
> a.Number,
> a.Code,
> a.Text
> FROM
> b,
> a
> WHERE
> (b.Id = a.Id) AND
> (VersionId = 'key1') AND
> (Category = 'key2') AND
> (b.d_Id = 'key3')
> ORDER BY
> a.Number;
>
> (my apologies: I had to 'mangle' the table/column names because of NDA)
>
> So my question is this: would this query operate differently in MySQL
> than in PostgreSQL? The reason I ask is that this query in MySQL
> returns results, yet in PostgreSQL it does not.

Without showing the tables and the data in it, it's fairly hard to tell.
I think MySQL does case insensitive string comparisons; check that.

> I read a post about PostgreSQL not supporting outer joins, but I don't
> have enough experience with SQL to determine if this is such a query
> or not. Please advise.

This is not an outer join.

--
Peter Eisentraut peter_e(at)gmx(dot)net http://yi.org/peter-e/

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message David Olbersen 2001-02-06 00:16:11 Re: SQL Join - MySQL/PostgreSQL difference?
Previous Message Sebastian --[ www.flashhilfe.de ]-- 2001-02-05 21:21:51 Search