Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update system variable #11505

Merged
merged 2 commits into from
Oct 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions system-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ mysql> SELECT * FROM t1;
- 作用域:SESSION | GLOBAL
- 是否持久化到集群:是
- 默认值:`utf8mb4_bin`
- 该变量表示默认数据库中所使用的排序规则。与 MySQL 中的 `collation_database` 一致。
- 该变量表示当前数据库默认所使用的排序规则。与 MySQL 中的 `collation_database` 一致。**不建议设置此变量**,当前使用的数据库变动时,此变量会被 TiDB 修改

### `collation_server`

Expand Down Expand Up @@ -232,7 +232,7 @@ mysql> SELECT * FROM t1;

### `last_insert_id` <span class="version-mark">从 v5.3.0 版本开始引入</span>

- 返回 `LAST_INSERT_ID()` 的结果。这个变量是一个只读变量,与 MySQL 中的 `last_insert_id` 一致。
- 返回由 INSERT 语句产生的最新 `AUTO_INSCRENT` 或者 `AUTO_RANDOM` 值,与 `LAST_INSERT_ID()` 的返回的结果相同。与 MySQL 中的 `last_insert_id` 一致。
- 作用域:SESSION
- 默认值:`0`

Expand Down