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

Re: operator class for user defined type

From: "Larry Rosenman" <ler(at)lerctr(dot)org>
To: "'Kjetil Haaland'" <kjetil(dot)haaland(at)student(dot)uib(dot)no>,<pgsql-novice(at)postgresql(dot)org>
Subject: Re: operator class for user defined type
Date: 2005-02-21 16:42:48
Message-ID: E1D3Ge7-0003hq-Nz@lerami.lerctr.org (view raw or flat)
Thread:
Lists: pgsql-novice
Kjetil Haaland wrote:
> Hi
> 
> 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?  
> 


Does order by xxx DESC help?



-- 
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 972-414-9812                 E-Mail: ler(at)lerctr(dot)org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749


In response to

pgsql-novice by date

Next:From: A GilmoreDate: 2005-02-21 19:19:34
Subject: Re: Concatenate rows
Previous:From: Tom LaneDate: 2005-02-21 16:30:34
Subject: Re: operator class for user defined type

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