Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> constraint question on uniqueness

constraint question on uniqueness

From: ayrobins <anthony_at_lumos.com>
Date: Mon, 03 Dec 2001 15:52:49 GMT
Message-ID: <ldNO7.93$eM5.6307@dca1-nnrp2.news.digex.net>


Is there any way to create a constraint (probably a CHECK constraint) that would inforce uniqueness for
one type of value for that column.

e.g.

row1, col1 = "active"
row2, col1 = "pending"
row3, col1 = "pending"

Thus the value "active" can only be specified for one row at a time. "pending" will be specified for all other rows.

thanx in advance. Received on Mon Dec 03 2001 - 09:52:49 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US