Snowflake Vs MS-SQL - Part 22 - Dynamic Query Execution

  


Dynamic Query Execution

During development, you may need to construct query dynamically and execute it.


MS-SQL Server 

You can use stored procedure to build dynamic query and then execute stored procedure by passing parameter value as below.




In Snowflakewe can achieve this by using table function TO_QUERY.






For more details, you can refer to the following TO_QUERY or LINK.




  

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