17.10 - Column-Level Alterations - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1144-171K
Language
English (United States)

Example: Add Column to Table

ALTER FOREIGN TABLE ParquetTab1 ADD GageHeight FLOAT;

Example: Change Character Set of Payload Column to UNICODE

ALTER FOREIGN TABLE JSONTab1
ADD Payload JSON(8388096) INLINE LENGTH 32000 CHARACTER SET UNICODE;

Example: Change Character Set of Payload Column to LATIN

ALTER FOREIGN TABLE JSONTab1 
ADD Payload JSON(16776192) INLINE LENGTH 64000 CHARACTER SET LATIN;

Example: Drop Column from Table

ALTER FOREIGN TABLE ParquetTab1 DROP GageHeight;