Re: A strange problem

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: A strange problem
Дата
Msg-id 20050827082325.R73063@megazone.bigpanda.com
обсуждение исходный текст
Ответ на A strange problem  (Tang Tim Hei <timheit@netvigator.com>)
Список pgsql-general
On Sat, 27 Aug 2005, Tang Tim Hei wrote:

> Hi,

>   I'm new to postgresql. Anytime I type the following command to the
>   database to run, it give me no result record if table 'country' is
>   empty but can get result if 'country' is not empty. Is this so
>   strange?

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.

>   select A.* from test.currency A, test.country B where A.curr_cd='USD'


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

Предыдущее
От: Tang Tim Hei
Дата:
Сообщение: A strange problem
Следующее
От: Douglas McNaught
Дата:
Сообщение: Re: A strange problem