Skip to content

Commit

Permalink
Add note about not supporting multiple ALTER TABLE operations (#1892)
Browse files Browse the repository at this point in the history
Co-authored-by: Kolbe Kegel <kolbe@kolbekegel.com>
  • Loading branch information
sre-bot and kolbe authored Feb 28, 2020
1 parent bb5a71f commit 4e4f057
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions reference/mysql-compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ In TiDB DDL does not block reads or writes to tables while in operation. However
- Only supports changing the `CHARACTER SET` attribute from `utf8` to `utf8mb4`.
+ `LOCK [=] {DEFAULT|NONE|SHARED|EXCLUSIVE}`: the syntax is supported, but is not applicable to TiDB. All DDL changes that are supported do not lock the table.
+ `ALGORITHM [=] {DEFAULT|INSTANT|INPLACE|COPY}`: the syntax for `ALGORITHM=INSTANT` and `ALGORITHM=INPLACE` is fully supported, but it works differently from MySQL because some operations that are `INPLACE` in MySQL are `INSTANT` in TiDB. The syntax `ALGORITHM=COPY` is not applicable to TIDB and returns a warning.
+ Multiple operations cannot be completed in a single `ALTER TABLE` statement. For example, it's not possible to add multiple columns or indexes in a single statement.

+ The following Table Options are not supported in syntax:
- `WITH/WITHOUT VALIDATION`
Expand Down

0 comments on commit 4e4f057

Please sign in to comment.