Snowflake Vs MS-SQL - Part 7 - IF NOT EXISTS at Column Level

     


IF NOT EXISTS at Column Level 

During your development, sometimes you may need to add NEW column in the existing table. As a common practise, you first need to confirm that column with same name does not exist.

MS-SQL Server 

You can achieve this by checking the column name and if not exists then add new column.



However in Snowflake we can achieve this by using check in ALTER command itself.



For more details, you can refer the following LINK.


Similarly, we can use to drop an existing column. The same command works in MS-SQL Server.



Yogesh Shinde

LinkedInProfile

<<< Back Next >>>


Comments

Popular posts from this blog

Snowflake Vs MS-SQL - Part 36 - SPLIT_TO_TABLE

Snowflake Vs MS-SQL - Part 63 - ON Clause & Cross Join

Snowflake Vs MS-SQL - Part 33 - INITCAP