Non-check constraint def for a static list ?

Поиск
Список
Период
Сортировка
От Gauthier, Dave
Тема Non-check constraint def for a static list ?
Дата
Msg-id 482E80323A35A54498B8B70FF2B8798004189C0D8F@azsmsx504.amr.corp.intel.com
обсуждение исходный текст
Ответы Re: Non-check constraint def for a static list ?
Re: Non-check constraint def for a static list ?
Re: Non-check constraint def for a static list ?
Список pgsql-general

Hi:

 

How could I define a constraint on a colum who’s value I want to restrict to a static list of strings?  For example, a column colled “gender” which cannot be NULL and must be either ‘M’ or ‘F’.  I can do it with a “check” constraint, but I can’t defer those constraints (the reason I’m asking for a non-check soln)

 

Thanks

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

Предыдущее
От: std pik
Дата:
Сообщение: hardware information
Следующее
От: Sam Mason
Дата:
Сообщение: Re: Non-check constraint def for a static list ?