Обсуждение: CHECK constraint so that only one is TRUE?

Поиск
Список
Период
Сортировка

CHECK constraint so that only one is TRUE?

От
incognit@unifiedmind.com (+I)
Дата:
How would you write a check constraint to ensure that only one column,
of type boolean, is set to TRUE for a given ID?

Thanks.