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)