CHECK constraint so that only one is TRUE? - Mailing list pgsql-general

From incognit@unifiedmind.com (+I)
Subject CHECK constraint so that only one is TRUE?
Date
Msg-id ebcd475a.0201121104.62d46853@posting.google.com
Whole thread Raw
List pgsql-general
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.

pgsql-general by date:

Previous
From: ph02116@yahoo.com (ph01803)
Date:
Subject: Having problem with initdb on my Solaris 8 box
Next
From: Justin Clift
Date:
Subject: Re: Kindly help.