Reputation: 695
It looks like # comment the rest of sentence but it throws error if we try to include it in execution command.(assumtion of commenting due to text turn out grey after # symbol) I know there is no official documentation that # is use for comment in snowflake. But we use // or -- for comment in snowflake. Anyone has idea what is use/meaning/equivalence of # symbol in snowflake.
P.S- I'm asking this because I am from SQL Server backround where # is use to create temporary table.
Example:
select * from aa// random comment;
; -- no issue at all
#select * from aa;
select * from aa //select * from aa;
;--SQL compilation error: syntax error line 1 at position 0 unexpected '#s'.
Upvotes: 0
Views: 463
Reputation: 2622
As far as I know the "#"-symbol has no syntax-meaning in Snowflake.
Similar to SQL Server there are also Temporary tables in Snowflake: https://docs.snowflake.com/en/user-guide/tables-temp-transient.html
Temporary tables are somehow similar in SQL Server and Snowflake but it is important to know that temporary tables in Snowflake:
Upvotes: 2