Re: order by <something wierd>

From: "Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au>
To: "Marin Dimitrov" <marin(dot)dimitrov(at)sirma(dot)bg>, "Mathieu Arnold" <mat(at)mat(dot)cc>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: order by <something wierd>
Date: 2002-05-15 02:06:36
Message-ID: GNELIHDDFBOCMGBFGEFOGEJMCCAA.chriskl@familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

> ----- Original Message -----
> From: "Mathieu Arnold"
>
> > then 1 and then 3. so that the result should be :
> >
> > 1 | one | 1
> > 3 | three | 2
> > 5 | five | 2
> > 2 | two | 3
> > 4 | four | 3
> >
> > How could I do that ?
> >
>
> gate09=# select * from a order by 3,1,2;

This won't work - it will order by the third param, then first, then
second...

Chris

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Christopher Kings-Lynne 2002-05-15 02:07:57 Re: date_part, how to use
Previous Message Tom Lane 2002-05-14 23:29:10 Re: can't cast varchar as integer?