Re: Unique constraint and NULL values
From: hankr <hankr_at_skillview.com>
Date: Wed, 1 Dec 2004 12:51:31 -0500
Message-ID: <col0bp02ok_at_enews1.newsguy.com>
Date: Wed, 1 Dec 2004 12:51:31 -0500
Message-ID: <col0bp02ok_at_enews1.newsguy.com>
Not sure anyone really answered this before they went off on the tangent.
"Agoston Bejo" <gusz1_at_freemail.hu> wrote in message
news:cl8ba7$d04$1_at_news.caesar.elte.hu...
>I want to enforce such a constraint on a column that would ensure that the
> values be all unique, but this wouldn't apply to NULL values. (I.e. there
> may be more than one NULL value in the column.)
> How can I achieve this?
> I suppose I would get the most-hated "table/view is changing,
> trigger/function may not see it" error if I tried to write a trigger that
> checks the uniqueness of non-null values upon insert/update.
>
>
Received on Wed Dec 01 2004 - 18:51:31 CET