Re: SQL Join - MySQL/PostgreSQL difference?

From: David Olbersen <dave(at)slickness(dot)org>
To: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: SQL Join - MySQL/PostgreSQL difference?
Date: 2001-02-06 00:16:11
Message-ID: Pine.LNX.4.31.0102051612080.22396-100000@bubbles.electricutopia.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Thu, 1 Feb 2001, Brice Ruth wrote:

->SELECT
-> a.Number,
-> a.Code,
-> a.Text
->FROM
-> b,
-> a
->WHERE
-> (b.Id = a.Id) AND

These next two statements are very ambiguous. Make them explicit as you have
with "(b.Id = a.Id)" and "(b.d_Id = 'key3')"

Also, be sure that 'key3' is how what you want looks in the database

-> (VersionId = 'key1') AND
-> (Category = 'key2') AND
-> (b.d_Id = 'key3')
->ORDER BY
-> a.Number;

Also, make sure ( '\d b' ) that your columns are case-sensatively named 'Id' and
such as this does matter.

-- Dave

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Stephan Szabo 2001-02-06 00:37:27 Re: how to simulate UPdate ...?
Previous Message Peter Eisentraut 2001-02-06 00:11:41 Re: SQL Join - MySQL/PostgreSQL difference?