Re: enforcing alphabetic/numeric content in "char" column

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: enforcing alphabetic/numeric content in "char" column
Дата
Msg-id 23305.1036692165@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: enforcing alphabetic/numeric content in "char" column  (Rod Kreisler <rod@23net.net>)
Список pgsql-novice
Rod Kreisler <rod@23net.net> writes:
> Your regex should be '^[0-9]$' (the one you have will allow any string as
> long as there is a numeric character in it somewhere).

Almost: that only allows a single digit.  Probably '^[0-9]+$' is the
correct regex.

            regards, tom lane

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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: enforcing alphabetic/numeric content in "char" column
Следующее
От: "Michael Paesold"
Дата:
Сообщение: Re: enforcing alphabetic/numeric content in "char" column