Re: order by <something wierd>

From: "Marin Dimitrov" <marin(dot)dimitrov(at)sirma(dot)bg>
To: "Mathieu Arnold" <mat(at)mat(dot)cc>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: order by <something wierd>
Date: 2002-05-14 12:01:55
Message-ID: 006301c1fb3f$249aa2f0$9ba1d53e@sirma.bg
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;

c1 | c2 | c3
----+-------+----
1 | one | 1
3 | three | 2
5 | five | 2
2 | two | 3
4 | four | 3

hth,

Marin

----
"...what you brought from your past, is of no use in your present. When
you must choose a new path, do not bring old experiences with you.
Those who strike out afresh, but who attempt to retain a little of the
old life, end up torn apart by their own memories. "

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Mathieu Arnold 2002-05-14 12:04:10 Re: order by <something wierd>
Previous Message Mathieu Arnold 2002-05-14 11:49:41 order by <something wierd>