Adding column to a table in Teradata

To add a new column to an existing table i n Teradata without dropping it, we can make use of the alter table command

Syntax:

ALTER TABLE Table_name ADD column_name datatype

Example:

ALTER TABLE HAPPY_EMPLOYEES ADD HOBBIES VARCHAR(255) ;
ALTER TABLE HAPPY_EMPLOYEES ADD HOBBIES VARCHAR(255)  NOT NULL DEFAULT 'DAY DREAMING';

nVector

posted on 12 May 18

Enjoy great content like this and a lot more !

Signup for a free account to write a post / comment / upvote posts. Its simple and takes less than 5 seconds