order by

Поиск
Список
Период
Сортировка
От Jodi Kanter
Тема order by
Дата
Msg-id 005501c2f3c3$43f8db30$de138f80@virginia.edu
обсуждение исходный текст
Ответы Re: order by  ("Tomasz Myrta" <jasiek@klaster.net>)
Re: order by  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Список pgsql-sql
Is there a known problem with the SQL order by clause within postgres version 7.2.3?
I am trying to sort a field which holds file names that have some spaces as well non-alphanumeric characters, including underscores (see below).

The results of:
select study_name from study order by study_name;


  Study1a
  Study 1b
  Study  1c
  Study1d


The results of sorting in Perl (which uses Linux's underlying sort function)

Study  1c
Study 1b
Study1a
Study1d

Is there any way around this difference? Blank spaces should show up first in the sort.
Thanks
Jodi

_______________________________
Jodi L Kanter
BioInformatics Database Administrator
University of Virginia
(434) 924-2846
jkanter@virginia.edu


 

 

 

В списке pgsql-sql по дате отправления:

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: Does anyone use TO_CHAR(INTERVAL)?
Следующее
От: Manfred Koizar
Дата:
Сообщение: Re: UPDATE FROM portability