diff --git a/clustered-indexes.md b/clustered-indexes.md index a75cf3650f95f..d29cbdd7b6b31 100644 --- a/clustered-indexes.md +++ b/clustered-indexes.md @@ -67,7 +67,7 @@ For statements that do not explicitly specify the keyword `CLUSTERED`/`NONCLUSTE - `ON` indicates that primary keys are created as clustered indexes by default. - `INT_ONLY` indicates that the behavior is controlled by the configuration item `alter-primary-key`. If `alter-primary-key` is set to `true`, primary keys are created as non-clustered indexes by default. If it is set to `false`, only the primary keys which consist of an integer column are created as clustered indexes. -The default value of `@@global.tidb_enable_clustered_index` is `INT_ONLY`. +The default value of `@@global.tidb_enable_clustered_index` is `ON`. ### Add or drop clustered indexes diff --git a/system-variables.md b/system-variables.md index 8ce833ac9f52b..9b179775a9937 100644 --- a/system-variables.md +++ b/system-variables.md @@ -1012,7 +1012,7 @@ Constraint checking is always performed in place for pessimistic transactions (d - Scope: SESSION | GLOBAL - Persists to cluster: Yes - Type: Enumeration -- Default value: `INT_ONLY` +- Default value: `ON` - Possible values: `OFF`, `ON`, `INT_ONLY` - This variable is used to control whether to create the primary key as a [clustered index](/clustered-indexes.md) by default. "By default" here means that the statement does not explicitly specify the keyword `CLUSTERED`/`NONCLUSTERED`. Supported values are `OFF`, `ON`, and `INT_ONLY`: - `OFF` indicates that primary keys are created as non-clustered indexes by default.