Re: sort question

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: sort question
Дата
Msg-id 200312161900.25944.peter_e@gmx.net
обсуждение исходный текст
Ответ на sort question  (Glenn Holmer <gholmer@weycogroup.com>)
Список pgsql-jdbc
Glenn Holmer wrote:
> I don't know if this is a JDBC thing or not,

It is not.

> select distinct style, color, width, size from skiddata
> where skidno = 'F3932' order by style, color, width, size;
>
> I get the sizes in order '10 ', '10-', '11 ', '12 ', ' 9 ',
> ' 9-'.  Shouldn't ' 9 ' and ' 9-' come first?  Have I got
> something set up wrong in Postgres?

Text fields are sorted textually.  If you want a numeric sort, use a
numeric data type.


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

Предыдущее
От: Dave Cramer
Дата:
Сообщение: Re: sort question
Следующее
От: "Jason L. van Brackel"
Дата:
Сообщение: Insert Row to ResultSet problem....java.sql.SQLException: No Primary Keys