tencent cloud

문서Data Lake Compute

ALTER TABLE DROP COLUMN

포커스 모드
폰트 크기
마지막 업데이트 시간: 2024-08-07 17:15:45

Description

Supported engines: Presto and SparkSQL
Applicable table: Native Iceberg tables and external tables
Purpose: Delete a field from a data table.

Standard Statement

ALTER TABLE table_name DROP COLUMN column_name

Parameter

table_name: Name of the target table
column_name: Name of the column to be deleted

Example

ALTER TABLE `TBL` DROP COLUMN `COL2`




도움말 및 지원

문제 해결에 도움이 되었나요?

피드백