Add, remove or modify a column - ALTER TABLE in Snowflake

Data warehouse evolves with the ever-growing business needs. We often have to add additional columns to our warehouse tables, or get rid of few of the obsolete ones, etc... Snowflake lets the users modify the table using the ALTER Command.

ALTER TABLE EMPLOYEE ADD COLUMN FIRST_NAME VARCHAR(100);

to drop a column,

ALTER TABLE EMPLOYEE DROP COLUMN FIRST_NAME VARCHAR(100);

to modify a column,

ALTER TABLE EMPLOYEE MODIFY COLUMN FIRST_NAME VARCHAR(200)

Atori

posted on 20 Oct 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