Re: Isnumeric function?

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Isnumeric function?
Дата
Msg-id 200409080947.17682.josh@agliodbs.com
обсуждение исходный текст
Ответ на Re: Isnumeric function?  (Oliver Elphick <olly@lfix.co.uk>)
Ответы Re: Isnumeric function?  (Oliver Elphick <olly@lfix.co.uk>)
Список pgsql-sql
Oliver, Theo:

>  ~ '^[0-9]+$'

Actually, I usually do:

~ '^[0-9]+\.?[0-9]*$'

... to include decimals.   However, the above assumes that there is at least a 
"0" before the decimal; it would be nice to adapt it to matching a leading 
decimal (i.e. .057 ) as well.   Can't see any easy way, though ...

-- 
Josh Berkus
Aglio Database Solutions
San Francisco


В списке pgsql-sql по дате отправления:

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: Problem with returning setof record
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: How to rename a constraint/trigger??