Re: Setting up Field constraints

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Setting up Field constraints
Дата
Msg-id 20020306161806.L18770-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Setting up Field constraints  (Joseph Maxwell <jemaxwell@jaymax.com>)
Список pgsql-general
On Wed, 6 Mar 2002, Joseph Maxwell wrote:

> Hello,
> I have created a DB and TABLE but would like to constrain one field to
> accept either "YES" or "NO" only. How can I set this up?

Probably something like:
Prior_Rx varchar(3) CHECK (Prior_Rx in ('Yes','No'))



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

Предыдущее
От: Darren Ferguson
Дата:
Сообщение: Re: Have problems with 7.1 -> 7.2 upgrade
Следующее
От: andrew.clark@sge.net
Дата:
Сообщение: Re: Have problems with 7.1 -> 7.2 upgrade