Re: missing FROM-clause notice but nothing is missing ...

Поиск
Список
Период
Сортировка
От Jean-Christian Imbeault
Тема Re: missing FROM-clause notice but nothing is missing ...
Дата
Msg-id 3E83DD90.7050609@mega-bucks.co.jp
обсуждение исходный текст
Ответ на Re: missing FROM-clause notice but nothing is missing ...  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Ответы Re: missing FROM-clause notice but nothing is missing ...
Re: missing FROM-clause notice but nothing is missing ...
Список pgsql-general
Stephan Szabo wrote:
>
> I think this is because by the time you get to the order by, products and
> rel_cast_crew_movies are treated as being out of scope.  The column
> produced by the union is just named "id" I think.

You're right. changing the ORDER by products.id to simply ORDER by id
solved the problem ...

I don't know much about SQL scoping but I would have hoped that a UNION
could have kept the fully-qualified column names (i.e. products.id
instead of simply ID).

Jc


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

Предыдущее
От: Lincoln Yeoh
Дата:
Сообщение: Re: Solution to UPDATE...INSERT problem
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: missing FROM-clause notice but nothing is missing ...