| 不可用索引 (Non-SARGable) | 可用索引 (SARGable) |
|---|---|
| `WHERE Col + 1 = 10` | `WHERE Col = 9` |
| `WHERE SUBSTRING(Col,1,3)='ABC'` | `WHERE Col LIKE 'ABC%'` |
| `WHERE YEAR(DateCol) = 2024` | `WHERE DateCol >= '2024-01-01' AND DateCol < '2025-01-01'` |
| `WHERE ISNULL(Col,0) = 1` | `WHERE Col = 1 OR Col IS NULL` (或預設值) |
| `WHERE Col LIKE '%ABC'` | 全文檢索 / 反向索引 (Computed Column + Index) |