From: Richard Huxton <dev@archonet.com>
To: Zhao, Scott <scott.zhao@usask.ca>
To: pgsql-sql@postgresql.org
Subject: Re: SQL function to validate money input
Date: Thu, 16 Oct 2003 13:50:21 +0100
Message-ID: <200310161350.21534.dev@archonet.com> (raw)
In-Reply-To: <8A45A0F766A7C34894C80BBAEBEBA118E0AC7E@thick.usask.ca>
References: <8A45A0F766A7C34894C80BBAEBEBA118E0AC7E@thick.usask.ca>
On Wednesday 15 October 2003 22:46, Zhao, Scott wrote:
> Hi All,
>
> Is there a function available to validate if the input is a correct
> money format? For exapmle, "23.56" is a correct number but "23.567" is
> incorrect. I just like to do this in postgres level not in my
> application code.
Well, you can always write your own, but:
1. How were you planning to use it?
2. What were you planning to do if the value provided isn't valid as money?
--
Richard Huxton
Archonet Ltd
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: dev@archonet.com, scott.zhao@usask.ca
Subject: Re: SQL function to validate money input
In-Reply-To: <200310161350.21534.dev@archonet.com>
* 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