Sorting

From: "Bart McFarling" <bartm(at)iilogistics(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Sorting
Date: 2007-01-08 16:21:38
Message-ID: 58748158EFB67344819B48564FCAD4A849B321@exchange2.iilogistics.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I have a column that is a varchar(6) I need to sort it by the rows that
are integers 1st then the character ones or vice versa, I just need the
values that can be converted to integer to sort by their numeric value.

i.e
1, 2, 3, 4, 5, 10, 11, A, B, C
instead of
1, 10, 11, 2, 3, 4, 5, A, B, C

Any suggestions?

Responses

  • Re: Sorting at 2007-01-08 16:59:05 from A. Kretschmer

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2007-01-08 16:22:47 Re: Discovering time of last database write
Previous Message Scott Marlowe 2007-01-08 16:19:23 Re: Discovering time of last database write