Snowflake Vs MS-SQL - Part 79 - Adding a comment to the Column of a Table

           


Adding a comment to the Column of a Table

Suppose you are designing a new table, and you want to add a comment for the columns of that table, so that whoever uses this table will get some idea of the columns of this table.

MS-SQL Server 

We can achieve it by using a system-level stored procedure(sp_addExtendedProperty), which uses Extended properties to allow you to store custom metadata:




In Snowflake, we can use a similar approach by using the COMMENT clause as  below:





For more details, refer to COMMENT
.


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