CREATE UNIQUE NONCLUSTERED INDEX 索引名称ON 表名(字段) WHERE 字段 is not null SQL Server 2008+ 支持 转载于:https://www.cnblogs.com/billqian/p/7235718.html