Re: SQL function to validate money input

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: SQL function to validate money input
Дата
Msg-id 200310161350.21534.dev@archonet.com
обсуждение исходный текст
Ответ на SQL function to validate money input  ("Zhao, Scott" <scott.zhao@usask.ca>)
Список 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 по дате отправления:

Предыдущее
От: Wilson Fletcher
Дата:
Сообщение: Re: convert integer seconds to timestamp
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [GENERAL] Alias-Error