Re: How to add month.year column validation - Mailing list pgsql-general

From Adrian Klaver
Subject Re: How to add month.year column validation
Date
Msg-id 200912241605.16988.aklaver@comcast.net
Whole thread Raw
In response to Re: How to add month.year column validation  ("Andrus" <kobruleht2@hot.ee>)
List 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 by date:

Previous
From: "Andrus"
Date:
Subject: Re: How to add month.year column validation
Next
From: Kian Wright
Date:
Subject: date_trunc on date is immutable?