开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜