From: Thomas Lockhart <lockhart@alumni.caltech.edu>
To: Ice Planet <ice@adiemus.sk>
Cc: pgsql-sql@postgresql.org
Subject: Re: Type conversion
Date: Mon, 10 Jul 2000 14:24:32 +0000
Message-ID: <3969DCA0.25B4783E@alumni.caltech.edu> (raw)
References: <SAK.2000.07.10.cmmqekgq@adiemus>
> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: lockhart@alumni.caltech.edu, ice@adiemus.sk
Subject: Re: Type conversion
In-Reply-To: <3969DCA0.25B4783E@alumni.caltech.edu>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox