1
0
forked from docs/doc-exports
Yang, Tong 3f5759eed2 MRS comp-lts 2.0.38.SP20 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Yang, Tong <yangtong2@huawei.com>
Co-committed-by: Yang, Tong <yangtong2@huawei.com>
2023-01-19 17:08:45 +00:00

4.2 KiB

ALTER ADD COLUMNS

Function

This command is used to add columns to an existing table.

Syntax

ALTER TABLE tableIdentifier ADD COLUMNS(colAndType (,colAndType)*)

Parameter Description

Table 1 Parameters

Parameter

Description

tableIdentifier

Table name.

colAndType

Name of a comma-separated column with data types. A column name consists of letters, digits, and underscores (_).

Examples

alter table h0_1 add columns(ext0 string);

System Response

The columns are added to the table. You can run the DESCRIBE command to display the columns.