Re: join with 1 row limit - Mailing list pgsql-novice

From Tom Lane
Subject Re: join with 1 row limit
Date
Msg-id 28617.1295106549@sss.pgh.pa.us
Whole thread Raw
In response to join with 1 row limit  (Behringer Behringer <behringerdj@yahoo.com>)
Responses Re: join with 1 row limit  (Behringer Behringer <behringerdj@yahoo.com>)
List pgsql-novice
Behringer Behringer <behringerdj@yahoo.com> writes:
> In mysql this query works fine, what is the equivalent in posgresql?
> SELECT *
> FROM
> products p LEFT JOIN
> products_images pi ON p.id = pi.product_id  LIMIT 1
> WHERE products.company = 7

When asking that sort of question, it would be a good idea to explain
exactly what you expect that syntax to do.  Not all of us know every
nook and cranny of mysql's nonstandard behaviors.

            regards, tom lane

pgsql-novice by date:

Previous
From: yamt@mwd.biglobe.ne.jp (YAMAMOTO Takashi)
Date:
Subject: Re: async fast-path calls?
Next
From: Behringer Behringer
Date:
Subject: Re: join with 1 row limit