From: Zhao, Scott <scott.zhao@usask.ca>
To: pgsql-sql@postgresql.org
Subject: SQL function to validate money input
Date: Wed, 15 Oct 2003 15:46:07 -0600
Message-ID: <8A45A0F766A7C34894C80BBAEBEBA118E0AC7E@thick.usask.ca> (raw)
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.
Thanks
Scott
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: scott.zhao@usask.ca
Subject: Re: SQL function to validate money input
In-Reply-To: <8A45A0F766A7C34894C80BBAEBEBA118E0AC7E@thick.usask.ca>
References: <8A45A0F766A7C34894C80BBAEBEBA118E0AC7E@thick.usask.ca>
* 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