Re: How to use the SET data type? Help plz!

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: How to use the SET data type? Help plz!
Дата
Msg-id 3F9D39EE.80603@familyhealth.com.au
обсуждение исходный текст
Ответ на How to use the SET data type? Help plz!  (pgadmin@claymccoy.com)
Список 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 по дате отправления:

Предыдущее
От: Andreas Pflug
Дата:
Сообщение: Re: RE: [pgadmin-support] Re: How to use the SET
Следующее
От: pgadmin@claymccoy.com
Дата:
Сообщение: Re:  How to use the SET data type?  Help plz!