Re: implied FROM - Mailing list pgsql-sql

From Tomasz Myrta
Subject Re: implied FROM
Date
Msg-id 3EB21AE6.4020205@klaster.net
Whole thread Raw
In response to implied FROM  ("Matt Mello" <alien@spaceship.com>)
Responses Re: implied FROM
Re: implied FROM
List pgsql-sql
Dnia 2003-05-02 04:06, Uz.ytkownik Matt Mello napisa?:
<cut>
> So, why doesn't asking for a field from a table that IS NOT in the from
> clause throw an exception?  Isn't it violating the SQL language?  Why is PG
> implying FROM tables?
>
> Thanks!
Your second case is translated into:
select store.storeid from appliance,store where appliance.applianceid = 32;

There was a discussion several months ago about "missing from clause". I
was voting for changing this warning into exception. Some people said,
that it is very useful inside update queries. The conclusion was this
behaviour should stay as it is. Anyway it isn't such a big problem for
me, because the only problem is to catch "missing from clause" warning.

Regards,
Tomasz Myrta



pgsql-sql by date:

Previous
From: Oliver Elphick
Date:
Subject: Re: differences between oracle,pgsql,sybase
Next
From: "Yudha [ Inas_Husband ] Setiawan"
Date:
Subject: It's About field type array