tencent cloud

ALTER TABLE ... RENAME COLUMN
Last updated: 2024-08-07 17:17:13
ALTER TABLE ... RENAME COLUMN
Last updated: 2024-08-07 17:17:13

Description

Supported engine: SparkSQL
Applicable table: External and native Iceberg tables
Purpose: Change field name.

Statement

ALTER TABLE table_identifier
RENAME COLUMN old_column_name TO new_column_name

Parameter

table_identifier: Data table name
old_column_name: Field name to be changed
new_column_name: Field name after the change

Example

alter table iceberg_rename rename column id to id_2



Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback