Skip to content

Commit

Permalink
Clarified a description about auto-incremental ID (pingcap#8604)
Browse files Browse the repository at this point in the history
  • Loading branch information
hfxsd authored Mar 9, 2022
1 parent 8a5ac03 commit c5c7705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mysql-compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ aliases: ['/docs-cn/dev/mysql-compatibility/','/docs-cn/dev/reference/mysql-comp

### 自增 ID

- TiDB 的自增列仅保证唯一,也能保证在单个 TiDB server 中自增,但不保证多个 TiDB server 中自增,不保证自动分配的值的连续性,建议不要将缺省值和自定义值混用,若混用可能会收到 `Duplicated Error` 的错误信息。
- TiDB 的自增列既能保证唯一,也能保证在单个 TiDB server 中自增,但不保证多个 TiDB server 中自增,不保证自动分配的值的连续性。不建议将缺省值和自定义值混用,若混用可能会收到 `Duplicated Error` 的错误信息。

- TiDB 可通过 `tidb_allow_remove_auto_inc` 系统变量开启或者关闭允许移除列的 `AUTO_INCREMENT` 属性。删除列属性的语法是:`ALTER TABLE MODIFY``ALTER TABLE CHANGE`

Expand Down

0 comments on commit c5c7705

Please sign in to comment.