Re: How to use the SET data type? Help plz! - Mailing list pgadmin-support

From Christopher Kings-Lynne
Subject Re: How to use the SET data type? Help plz!
Date
Msg-id 3F9D39EE.80603@familyhealth.com.au
Whole thread Raw
In response to How to use the SET data type? Help plz!  (pgadmin@claymccoy.com)
List pgadmin-support
> I see your points.  So how is the best way to implement this type of "set" idea 
> in something like postgres?  Say I have a column named primary colors, and I 
> want to limit this to red, blue, and yellow.  How is the best way to do this 
> without a mysql set?

CREATE TABLE foo (color varchar(255) NOT NULL,CHECK (color IN ('red', 'blue', 'yellow'))
};

Chris




pgadmin-support by date:

Previous
From: Andreas Pflug
Date:
Subject: Re: RE: [pgadmin-support] Re: How to use the SET
Next
From: pgadmin@claymccoy.com
Date:
Subject: Re:  How to use the SET data type?  Help plz!