我发现这篇文章谈到避免在 where 子句中使用 <> 运算符,因为优化器会忽略索引。
https://www.mssqltips.com/sqlservertutorial/3203/avoid-using-not-equal-in-where-clause/
这绝对是真的吗?
处理这个问题的最佳方法是什么?如何避免使用 <> ?
index sql-server where
index ×1
sql-server ×1
where ×1