小编tsv*_*nav的帖子

在 where 子句中使用不等式 (<>) 或 NOT 是否会导致 SQL 忽略索引?

我发现这篇文章谈到避免在 where 子句中使用 <> 运算符,因为优化器会忽略索引。

https://www.mssqltips.com/sqlservertutorial/3203/avoid-using-not-equal-in-where-clause/

这绝对是真的吗?

处理这个问题的最佳方法是什么?如何避免使用 <> ?

index sql-server where

2
推荐指数
1
解决办法
672
查看次数

标签 统计

index ×1

sql-server ×1

where ×1