select distinct point?

Поиск
Список
Период
Сортировка
От Greg Stark
Тема select distinct point?
Дата
Msg-id 87n0mhr9z6.fsf@stark.dyndns.tv
обсуждение исходный текст
Ответы Re: select distinct point?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
You can't select distinct on the point datatype column? I see why it's
nonobvious how to sort points but then how come it works fine to select
distinct on a box column?


slo=> create table test (p point);
CREATE TABLE
slo=> select distinct * from test;
ERROR:  Unable to identify an ordering operator '<' for type 'point'
    Use an explicit ordering operator or modify the query
slo=> create table test2 (b box);
CREATE TABLE
slo=> select distinct * from test2;
 b
---
(0 rows)




--
greg

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: boolean over char(1)
Следующее
От: Joe Conway
Дата:
Сообщение: Re: example table functions?