Re: SQL Join - MySQL/PostgreSQL difference?

Поиск
Список
Период
Сортировка
От David Olbersen
Тема Re: SQL Join - MySQL/PostgreSQL difference?
Дата
Msg-id Pine.LNX.4.31.0102051612080.22396-100000@bubbles.electricutopia.net
обсуждение исходный текст
Ответ на SQL Join - MySQL/PostgreSQL difference?  (Brice Ruth <brice@webprojkt.com>)
Список 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





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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: SQL Join - MySQL/PostgreSQL difference?
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: how to simulate UPdate ...?