Skip to content

Commit

Permalink
Add description about table name/alias specifying for read_from_stora…
Browse files Browse the repository at this point in the history
…ge hint (pingcap#6861) (pingcap#6988)
  • Loading branch information
ti-chi-bot authored Aug 26, 2021
1 parent d5a4bd1 commit 9522975
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optimizer-hints.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ SELECT /*+ AGG_TO_COP() */ sum(t1.a) FROM t t1;

### READ_FROM_STORAGE(TIFLASH[t1_name [, tl_name ...]], TIKV[t2_name [, tl_name ...]])

`READ_FROM_STORAGE(TIFLASH[t1_name [, tl_name ...]], TIKV[t2_name [, tl_name ...]])` 提示优化器从指定的存储引擎来读取指定的表,目前支持的存储引擎参数有 `TIKV``TIFLASH`。例如:
`READ_FROM_STORAGE(TIFLASH[t1_name [, tl_name ...]], TIKV[t2_name [, tl_name ...]])` 提示优化器从指定的存储引擎来读取指定的表,目前支持的存储引擎参数有 `TIKV``TIFLASH`如果为表指定了别名,就只能使用表的别名作为 `READ_FROM_STORAGE()` 的参数;如果没有指定别名,则用表的本名作为其参数。例如:

{{< copyable "sql" >}}

Expand Down

0 comments on commit 9522975

Please sign in to comment.