Skip to content

Commit

Permalink
Update sql-statements/sql-statement-create-index.md
Browse files Browse the repository at this point in the history
Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
  • Loading branch information
wjhuang2016 and TomShawn authored Aug 10, 2021
1 parent 0b70f80 commit f42d85a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql-statements/sql-statement-create-index.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ DROP INDEX idx1 ON t1;
当查询语句中的表达式与表达式索引中的表达式一致时,优化器可以为该查询选择使用表达式索引。依赖于统计信息,某些情况下优化器不一定选择表达式索引。这时可以通过 hint 指定强制使用表达式索引。

假设已有建立在 `lower(col1)` 上的表达式索引 `idx`,那么:
在以下示例中,假设建立在 `lower(col1)` 表达式上的索引为 `idx`

当读取的结果为相同的表达式时,可以使用表达式索引。例如:

Expand Down

0 comments on commit f42d85a

Please sign in to comment.