Re: How I can get the real data type result instead of

Поиск
Список
Период
Сортировка
От Sigurdur Gunnlaugsson
Тема Re: How I can get the real data type result instead of
Дата
Msg-id 1142891075.13455.4.camel@raftahlid35
обсуждение исходный текст
Ответ на How I can get the real data type result instead of integer data type?  ("Wei Wei" <wei725@lycos.com>)
Список pgsql-general
On Mon, 2006-03-20 at 21:10, Wei Wei wrote:
> In a query, there is something like
>
> order by count(id)/age
>
> where both id and age are the integer data type.
>
> >From a query result, I believe the operation count(id)/age yields a integer. I need it in real data type. After
searchingthe online document, I haven't found any related information. Can someone help me out on this problem, please. 
>
> Thanks,
>
> w

Try:

order by count(id)/age::float

regards,
Sig.Gunn


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

Предыдущее
От: mike
Дата:
Сообщение: Re: question about pg_hba.conf
Следующее
От: Tom Lane
Дата:
Сообщение: Re: db sever seems to be dropping connections