Re: changing constraints - Mailing list pgsql-sql

From David
Subject Re: changing constraints
Date
Msg-id 002e01c406b8$5c9ae260$42660c81@ad.kent.ac.uk
Whole thread Raw
In response to Convert INT to INTERVAL?  (Brian Knox <laotse@aol.net>)
List pgsql-sql
Cheers that worked fine, i guess its obvious im new to postgres (SQL in
general!), oh well you have to learn somehow

Dave

>
> Try something like (untested):
>   ALTER TABLE genus ADD CONSTRAINT valid_gender CHECK (gender IN
> ('masculine','feminine'));
>
>
> -- 
>   Richard Huxton
>   Archonet Ltd
>



pgsql-sql by date:

Previous
From: Richard Huxton
Date:
Subject: Re: changing constraints
Next
From: "Jander"
Date:
Subject: Break a report in Run Time