ALTER FOREIGN TABLE (SQL on other GaussDB(DWS))

Function

Modifies a foreign table in associated analysis.

Precautions

None

Syntax

Parameter Description

For details on how to modify other parameters in the foreign table, see Parameter Description in ALTER TABLE.

Example:

Modify the region option of the foreign table.
1
ALTER FOREIGN TABLE region OPTIONS (SET schema_name 'test');

Change the type of the r_name column to text in the region foreign table.

1
ALTER FOREIGN TABLE region ALTER r_name TYPE TEXT;

Helpful Links

DROP FOREIGN TABLE, CREATE FOREIGN TABLE (SQL on other GaussDB(DWS))