doc-exports/docs/dws/dev/dws_06_0276.html
Lu, Huayi ef0ada5a59 DWS DEV 20240716 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2024-11-02 09:07:47 +00:00

4.3 KiB

RENAME TABLE

Function

Renames a specified table.

Precautions

RENAME TABLE has the same function as the following command:

1
ALTER TABLE table_name RENAME to new_table_name

Syntax

1
2
RENAME TABLE
{[schema.]table_name TO new_table_name} [, ...];

Parameter Description

  • schema

    Specifies the schema name.

  • table_name

    Specifies the name of the table to be modified.

  • new_table_name

    Specifies the new table name.

Examples

Rename a table:

1
RENAME TABLE customer_address TO new_customer_address;

Helpful Links

CREATE TABLE, ALTER TABLE, and DROP TABLE