RE: distinct+trim=error?

Поиск
Список
Период
Сортировка
От Tamsin
Тема RE: distinct+trim=error?
Дата
Msg-id NEBBKHBOBMJCHDMGKCNJAEIECDAA.tg_mail@bryncadfan.co.uk
обсуждение исходный текст
Ответ на distinct+trim=error?  (Boszormenyi Laszlo <gcs@jupiter.hlab.uni-miskolc.hu>)
Список pgsql-novice
Probably (can't try this at the moment as I'm at home) you need to do:

 select distinct trim(city) from lodge order by trim(city);

Hope this helps
Tamsin

> -----Original Message-----
> From: pgsql-novice-owner@hub.org [mailto:pgsql-novice-owner@hub.org]On
> Behalf Of Boszormenyi Laszlo
> Sent: 24 September 2000 14:43
> To: pgsql-novice@hub.org
> Subject: [NOVICE] distinct+trim=error?
>
>
> 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 по дате отправления:

Предыдущее
От: Boszormenyi Laszlo
Дата:
Сообщение: distinct+trim=error?
Следующее
От:
Дата:
Сообщение: Re: Case (in)sensitive