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
Comments
Post a Comment