Skip site navigation (1) Skip section navigation (2)

Re: operator class for user defined type

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kjetil Haaland <kjetil(dot)haaland(at)student(dot)uib(dot)no>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: operator class for user defined type
Date: 2005-02-21 16:30:34
Message-ID: 489.1109003434@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-novice
Kjetil Haaland <kjetil(dot)haaland(at)student(dot)uib(dot)no> writes:
> I have created my own user defined type, and an operator class for this type. 
> Then i can use the order by clause with this type, but it is sorting with the 
> lowest value on top. Is it possible to get it to sort with the highest value 
> on top?

ORDER BY foo DESC

			regards, tom lane

In response to

pgsql-novice by date

Next:From: Larry RosenmanDate: 2005-02-21 16:42:48
Subject: Re: operator class for user defined type
Previous:From: Kjetil HaalandDate: 2005-02-21 14:16:40
Subject: operator class for user defined type

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group