How do I create an index on a table that is non unique?
-
05-10-2019 - |
سؤال
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
لا تنتمي إلى StackOverflow