Re: Sorting

From: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Sorting
Date: 2007-01-08 17:18:35
Message-ID: 20070108171835.GA15499@KanotixBox
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ragnar <gnari(at)hive(dot)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°

In response to

Responses

  • Re: Sorting at 2007-01-08 17:24:11 from Bart McFarling

Browse pgsql-general by date

  From Date Subject
Next Message Bart McFarling 2007-01-08 17:24:11 Re: Sorting
Previous Message Ragnar 2007-01-08 17:16:04 Re: Sorting