Re: sorting of a price field

Поиск
Список
Период
Сортировка
От Thomas Kellerer
Тема Re: sorting of a price field
Дата
Msg-id l11kcf$ipr$1@ger.gmane.org
обсуждение исходный текст
Ответ на sorting of a price field  (Anne Wainwright <anotheranne@fables.co.za>)
Список pgsql-novice
Anne Wainwright wrote on 14.09.2013 14:07:
> I run a fairly simple query to show current records of stock using the
> phrase 'sort by shop_price'.
>
> Surprise (but really no surprise) this is sorted in ascii order rather
> than shop_price order. So 110.00 comes before 20.00
>
> I can't see any reference to changing this. What can I do, is this
> perhaps to do with the field type, can it be changed?
>

What datatype is the shop_price column? Also please show us the full query.



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

Предыдущее
От: Jay Riddle
Дата:
Сообщение: Re: sorting of a price field
Следующее
От: Jov
Дата:
Сообщение: Re: sorting of a price field