Re: Sorting - Mailing list pgsql-general

From Andreas Kretschmer
Subject Re: Sorting
Date
Msg-id 20070108171835.GA15499@KanotixBox
Whole thread Raw
In response to Re: Sorting  (Ragnar <gnari@hive.is>)
Responses Re: Sorting
List pgsql-general
Ragnar <gnari@hive.is> schrieb:
> > test=*# select w, case when w ~ '^[0-9]*$' then w::int else 10000 end from foo order by 2,1;
>
> possible improvements:
>   a) w ~ '^[0-9]+$'
>   b) use NULL instead of 10000

Thanks, right.


Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."    (unknow)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°

pgsql-general by date:

Previous
From: Ragnar
Date:
Subject: Re: Sorting
Next
From: "Bart McFarling"
Date:
Subject: Re: Sorting