Re: Validating Whole Numbers

Поиск
Список
Период
Сортировка
От Jean-Luc Lachance
Тема Re: Validating Whole Numbers
Дата
Msg-id 3C83F5B0.58598EB6@nsd.ca
обсуждение исходный текст
Ответ на Validating Whole Numbers  ("Krog, Kenneth" <KAKrog@MassMutual.com>)
Список pgsql-general
How about:

WHERE x ~ '^[0-9]*$'


"Krog, Kenneth" wrote:
>
> Is there a quick way to validate whole numbers for instance you can validate
> a number
>
> if (is_numeric($x)
> {
> output
> }
> else
> {
> output
> }
>
> Thanks in advance
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly

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

Предыдущее
От: "Andrew Bartley"
Дата:
Сообщение: Re: postgre performance question
Следующее
От: "Greg Sabino Mullane"
Дата:
Сообщение: Re: counting words in a text or char varying field