Home > Archive > PostgreSQL Discussion > August 2005 > 回覆: Re: A strange problem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author 回覆: Re: A strange problem
Tang Tim Hei

2005-08-27, 8:23 pm


>
> 寄件者: Stephan Szabo <sszabo@megazone.bigpanda.com>
> 日期: 2005/08/27 星期六 下午 11:25:49 HKT
> 收件者: Tang Tim Hei <timheit@netvigator.com>
> 副本: pgsql-general@postgresql.org
> 主旨: Re: [GENERAL] A strange problem
>
> On Sat, 27 Aug 2005, Tang Tim Hei wrote:
>
>
>
> Not really. You're doing a cartesian join between test.currency and
> test.country. If there are no rows in test.country, there are no rows in
> the output of the from clause.
>
>
>
>


In the above command, I just add another table reference to it and it gives me two different results.
Even I add columns like B.* to it, it do the same things too. Is it not consistance?
In real world, I don't know the 'country' table is empty or not.
Sometime it is empty and sometime it is not empty, this will confuse me whether my program has bug or not.


---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com