Re: float to int

Поиск
Список
Период
Сортировка
От Edoardo Panfili
Тема Re: float to int
Дата
Msg-id 47386CF7.2060608@aspix.it
обсуждение исходный текст
Ответ на float to int  ("Charles.Hou" <ivan.hou@msa.hinet.net>)
Ответы Re: float to int
Список pgsql-general
Charles.Hou ha scritto:
> how can i get the int value using the sql language? like this,
>
> "select cost from my_money_table " , the data type of cost is float.
>
take a look at
http://www.postgresql.org/docs/8.2/static/sql-expressions.html
CAST ( expression AS type )
expression::type

Edoardo


--
Jabber: edoardopa@talk.google.com
tel: 075 9142766

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

Предыдущее
От: "Ken Winter"
Дата:
Сообщение: How to uninstall the geometry package?
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: PQexec(), what should I do for the "NULL in command" problem?