سؤال

I want an index on a non-primary key column, but this column may have nulls in it. I find on a normal unique index, it (rightly so) only allows one null.

Is that possible?

and what is the syntax for this?

هل كانت مفيدة؟

المحلول

CREATE INDEX idxname ON table(col1);

See MSDN

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top