Re: SQL function to validate money input - Mailing list pgsql-sql

From Richard Huxton
Subject Re: SQL function to validate money input
Date
Msg-id 200310161350.21534.dev@archonet.com
Whole thread Raw
In response to SQL function to validate money input  ("Zhao, Scott" <scott.zhao@usask.ca>)
List pgsql-sql
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


pgsql-sql by date:

Previous
From: Wilson Fletcher
Date:
Subject: Re: convert integer seconds to timestamp
Next
From: Tom Lane
Date:
Subject: Re: [GENERAL] Alias-Error