Operation | Syntax Supported | Online Change | Reason for Not Supporting Online Change | Metadata-Only | Data Operation | Permits Concurrent DML |
Creating/Adding a secondary index | Yes | Yes | / | No | Requires data backfill | Yes |
Dropping an index | Yes | Yes | / | No | Requires asynchronous data deletion | Yes |
Renaming an index | Yes | Yes | / | No | / | Yes |
Adding a FULLTEXT index | No | No | Not support this operation | / | / | / |
Adding a SPATIAL index | No | No | Not support this operation | / | / | / |
Changing the index type | No | No | Reason for no support: The engine only supports the default index type, not B-tree, Hash, etc. | / | / | / |
Operation | Syntax Supported | Online Change | Reason for Not Supporting Online Change | Metadata-Only | Data Operation | Permits Concurrent DML |
Adding a primary key | Yes | No | Data reorganization is required. | No | Requires table lock and copy | No |
Dropping a primary key | Yes | No | Data reorganization is required. | No | Requires table lock and copy | No |
Dropping a primary key and adding another | Yes | Yes | / | No | Requires table lock and copy | Yes |
Operatio | Syntax Supported | Online Change | Reason for Not Supporting Online Change | Metadata-Only | Data Operation | Permits Concurrent DML |
Adding a column (at the end) | Yes | Yes | / | Yes | Yes | |
Adding a column (not at the end) | Yes | Yes | / | No | Requires Online Copy | Yes |
Dropping a column | Yes | Yes | / | No | Requires Online Copy | Yes |
Renaming a column | Yes | Yes | / | Yes | / | Yes |
Reordering columns | Yes | Yes | / | No | Requires Online Copy | Yes |
Setting a column default value | Yes | Yes | / | Yes | / | Yes |
Changing a column data type | Yes | Yes | / | No | Requires Online Copy | Yes |
Extending VARCHAR column size (not in PK) | Yes | Yes | / | Varies* | Varies* | Yes |
Extending VARCHAR column size (in PK) | Yes | Yes | / | No | Requires Online Copy | Yes |
Dropping a column default value | Yes | Yes | / | Yes | / | Yes |
Changing the auto-increment value | Yes | Yes | / | Yes | / | Yes |
Making a column NULL | Yes | Yes | / | No | Requires Online Copy | Yes |
Making a column NOT NULL | Yes | Yes | / | No | Requires Online Copy | Yes |
Modifying ENUM or SET Definition | Yes | Yes | / | Yes | / | Yes |
Operation | Syntax Supported | Online Change | Reason for Not Supporting Online Change | Metadata-Only | Data Operation | Permits Concurrent DML |
Changing the ROW_FORMAT | No | No | Not support this operation | / | / | / |
Changing the KEY_BLOCK_SIZE | No | No | Not support this operation | / | / | / |
Setting persistent table statistics | No | No | Not support this operation | / | / | / |
Specifying a character set | Yes | Yes | / | No | Requires Online Copy | Yes |
Converting a character set | Yes | Yes | / | No | Requires Online Copy | Yes |
Optimizing a table | Yes | / | This command returns success immediately but performs no action, as the engine's automatic compaction makes it unnecessary | / | / | / |
Rebuilding with the FORCE option | Yes | Yes | / | No | Requires Online Copy | Yes |
Performing a null rebuild | No | No | Not support this operation | / | / | / |
Renaming a table | Yes | Yes | / | Yes | / | Yes |
Operation | Syntax Supported | Online Change | Reason for Not Supporting Online Change | Metadata-Only | Data Operation | Permits Concurrent DML |
PARTITION BY | Yes | Yes | / | No | Requires Online Copy | Yes |
ADD PARTITION | Yes | Yes | / | Yes | / | Yes |
DROP PARTITION | Yes | Yes | / | Yes | / | Yes |
DISCARD PARTITION | No | No | Not support this operation | / | / | / |
IMPORT PARTITION | No | No | Not support this operation | / | / | / |
TRUNCATE PARTITION | Yes | Yes | / | / | Async data deletion | Yes |
COALESCE PARTITION | Yes | Yes | / | No | Requires Online Copy | Yes |
REORGANIZE PARTITION | Yes | Yes | / | No | Requires Online Copy | Yes |
EXCHANGE PARTITION | No | No | Not support this operation | / | / | / |
ANALYZE PARTITION | No | No | Not support this operation | / | / | / |
CHECK PARTITION | No | No | Not support this operation | / | / | / |
OPTIMIZE PARTITION | Yes | / | This command returns success immediately but performs no action, as the engine's automatic compaction makes it unnecessary | / | / | / |
REBUILD PARTITION | Yes | Yes | / | No | Requires Online Copy | Yes |
REPAIR PARTITION | Yes | No | Not counted as DDL | / | / | / |
REMOVE PARTITIONING | Yes | Yes | / | No | Requires Online Copy | Yes |
Operation | TDSQL Boundless | MySQL |
Converting a character set | Allows concurrent DML | Blocks concurrent DML |
Changing the column data type | Allows concurrent DML | Blocks concurrent DML |
PARTITION BY | Allows concurrent DML | Blocks concurrent DML |
Extending VARCHAR column size | Allows concurrent DML | Support is conditional, with limits on X in VARCHAR(X). |
Adding a primary key | Blocks concurrent DML | Allows concurrent DML |
CREATETABLEt1(aINTPRIMARYKEY,bVARCHAR(10))ENGINE=InnoDBDEFAULTCHARSET=utf8mb4COLLATE=utf8mb4_0900_ai_ci;ALTERTABLEt1 CHANGECOLUMNb bVARCHAR(20),ALGORITHM=INPLACE,LOCK=NONE;→ Succeeded.ALTERTABLEt1 CHANGECOLUMNb bVARCHAR(64),ALGORITHM=INPLACE,LOCK=NONE;→ Failed.
Feedback