tencent cloud

Feedback

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
    
    
    
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support