Skip to content

Commit

Permalink
Update sql-statements/sql-statement-create-index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
TomShawn authored Aug 20, 2021
1 parent cdcd00b commit b4ff50e
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 @@ -156,7 +156,7 @@ DROP INDEX idx1 ON t1;
>
> Make sure that the number of function parameters in the expression of an expression index is correct.
>
> When the expression of the index contains a string-related function, affected by the returned type and the length, creating the expression index might fail. In this situation, you can use the `cast()` function to explicitly specify the returned type and the length.
> When the expression of an index contains a string-related function, affected by the returned type and the length, creating the expression index might fail. In this situation, you can use the `cast()` function to explicitly specify the returned type and the length.
When the expression in a query statement matches the expression in an expression index, the optimizer can choose the expression index for the query. In some cases, the optimizer might not choose an expression index depending on statistics. In this situation, you can force the optimizer to select an expression index by using optimizer hints.

Expand Down

0 comments on commit b4ff50e

Please sign in to comment.