Error with DISTINCT and AS keywords

Поиск
Список
Период
Сортировка
От Andreas Schlegel
Тема Error with DISTINCT and AS keywords
Дата
Msg-id 3D2C2140.7060003@software.b.uunet.de
обсуждение исходный текст
Ответы Re: Error with DISTINCT and AS keywords
Список pgsql-sql
Hi,

I need some help to let this sql statement run with Postgres 7.2.1

Doesn't work:
select DISTINCT tnr, titel, 'TEST' AS testcol from tTitel;
ERROR:  Unable to identify an ordering operator '<' for type 'unknown'        Use an explicit ordering operator or
modifythe query
 

If I remove the DISTINCT keyword it works:
select tnr, titel, 'TEST' AS testcol from tTitel;



Greetings,
Andreas




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

Предыдущее
От: Christoph Haller
Дата:
Сообщение: Re: Variables in PSQL
Следующее
От: Petr Jezek
Дата:
Сообщение: Re: Bad SUM result