Re: Strange behavior on non-existent field in subselect? - Mailing list pgsql-general

From Ken Tanzer
Subject Re: Strange behavior on non-existent field in subselect?
Date
Msg-id 4536A3BD.9040506@desc.org
Whole thread Raw
In response to Re: Strange behavior on non-existent field in subselect?  (Ragnar <gnari@hive.is>)
List pgsql-general
Thanks for the response Ragnar.  I would have expected this query to
fail, since the sub-query doesn't work by itself:

>> SELECT foo_field FROM foo WHERE foo_field IN (SELECT foo_field FROM par);

But it obviously doesn't.  So does that subselect implicitly read as:

IN (SELECT foo_field FROM par,foo);

Thanks for your help!

Ken





Attachment

pgsql-general by date:

Previous
From: Ron Johnson
Date:
Subject: Re: Real time query analyzer
Next
From: "Jim C. Nasby"
Date:
Subject: Re: Real time query analyzer