Re: Type conversion

Поиск
Список
Период
Сортировка
От Thomas Lockhart
Тема Re: Type conversion
Дата
Msg-id 3969DCA0.25B4783E@alumni.caltech.edu
обсуждение исходный текст
Ответ на Type conversion  (Ice Planet <ice@adiemus.sk>)
Список pgsql-sql
> select TheNumberFromConsole/(select max(division_point) from table1)

Try
 select '1234.5678'/(select max(division_point) from table1);

The quotes around the apparent floating point number keeps Postgres from
assuming that it *is* a floating point number, and it later decides that
it must have been a numeric() type.
                       - Thomas


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Corruption... please help
Следующее
От: Dorin Grunberg
Дата:
Сообщение: Subselects with IN and EXISTS