tencent cloud

Data Lake Compute

Política DLC
Política de privacidade
Contrato de Privacidade e Seguranca de dados
DocumentaçãoData Lake Compute

ALTER TABLE ... RENAME COLUMN

Modo Foco
Tamanho da Fonte
Última atualização: 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




Ajuda e Suporte

Esta página foi útil?

comentários