Re: How to add month.year column validation

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: How to add month.year column validation
Дата
Msg-id 200912241605.16988.aklaver@comcast.net
обсуждение исходный текст
Ответ на Re: How to add month.year column validation  ("Andrus" <kobruleht2@hot.ee>)
Список pgsql-general
On Thursday 24 December 2009 3:47:23 pm Andrus wrote:
> Scott,
>
> >You can use the regex I posted to get rid of the data easily, then go
> >back to the substr one for  a check constraint after that.
>
> regex is non-standard.
> How to implement this in standard SQL ?
>
> Andrus.

Why should it matter? The initial data clean up is a one time event. Once the
fields are cleaned up the check constraint will keep them that way.

--
Adrian Klaver
aklaver@comcast.net

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

Предыдущее
От: "Andrus"
Дата:
Сообщение: Re: How to add month.year column validation
Следующее
От: Kian Wright
Дата:
Сообщение: date_trunc on date is immutable?