ALTER TABLE¶
You can use the ALTER TABLE
command to:
Add, drop, and rename table columns
Rename tables
Add and reorder table clustering keys
Drop table clustering keys
Usage Note¶
Making changes to a schema makes an exclusive lock on tables. While these operations do not typically take much time, other statements may have to wait until the schema changes are completed.
Sub-Commands¶
Command |
Usage |
---|---|
Adds a new column to a table. |
|
Drops a column from a table. |
|
Renames a column. |
|
Renames a table. |
|
Modifies (adds or reorders) the clustering keys in a table. |
|
Drops all clustering keys. |