Senin, 02 Agustus 2010
Creating a unique constraint on a column that allows nulls
Primary keys, unique indexes and unique constraints all enforce uniqueness. The difference between the primary key and the unique index/constraint is that the primary key does not allow any NULL values. However whilst the unique index/constraints do allow null values they only allow one of them. Well thats obvious isn’t it. If you have 2 NULL values then you have duplicates and that breaks the
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar