开发者

How do I create an index on a table that is non unique?

开发者 https://www.devze.com 2023-01-01 03:13 出处:网络
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 开发者_Python百科so) only allows one null.

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 开发者_Python百科so) only allows one null.

Is that possible?

and what is the syntax for this?


CREATE INDEX idxname ON table(col1);

See MSDN

0

精彩评论

暂无评论...
验证码 换一张
取 消