Re: Error with DISTINCT and AS keywords
От | Achilleus Mantzios |
---|---|
Тема | Re: Error with DISTINCT and AS keywords |
Дата | |
Msg-id | Pine.LNX.4.44.0207101525330.23339-100000@matrix.gatewaynet.com обсуждение исходный текст |
Ответ на | Error with DISTINCT and AS keywords (Andreas Schlegel <schlegel@software.b.uunet.de>) |
Ответы |
Re: Error with DISTINCT and AS keywords
|
Список | pgsql-sql |
On Wed, 10 Jul 2002, Andreas Schlegel wrote: > 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 modify the query Do it as select DISTINCT tnr, titel, 'TEST'::text AS testcol from tTitel; > > If I remove the DISTINCT keyword it works: > select tnr, titel, 'TEST' AS testcol from tTitel; > > > > Greetings, > Andreas > > > > ---------------------------(end of broadcast)--------------------------- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org > -- Achilleus Mantzios S/W Engineer IT dept Dynacom Tankers Mngmt tel: +30-10-8981112 fax: +30-10-8981877 email: achill@matrix.gatewaynet.com mantzios@softlab.ece.ntua.gr
В списке pgsql-sql по дате отправления: