distinct+trim=error?

Поиск
Список
Период
Сортировка
От Boszormenyi Laszlo
Тема distinct+trim=error?
Дата
Msg-id Pine.LNX.4.21.0009241528280.28865-100000@jupiter.hlab.uni-miskolc.hu
обсуждение исходный текст
Ответы RE: distinct+trim=error?  ("Tamsin" <tg_mail@bryncadfan.co.uk>)
Список pgsql-novice
Hello!

 First, thanks for everybody who helped me with my previous problem.
Now I have an other, and I can not figure out why this happens.
Any idea?

=> select distinct trim(city) from lodge order by city;
ERROR:  For SELECT DISTINCT, ORDER BY expressions must appear in target list

Cheers,
    Laszlo


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

Предыдущее
От: Claus Houmøller
Дата:
Сообщение: Re: Case (in)sensitive
Следующее
От: "Tamsin"
Дата:
Сообщение: RE: distinct+trim=error?