Snowflake Vs MS-SQL - Part 19 - ILIKE - Selecting all columns with names that match a pattern

 


ILIKE - Selecting all columns with names that match a pattern

If you have a large table with many columns and when you want to select particular columns like all date columns to check the data.


MS-SQL Server 

You have to write a SELECT statement with specific columns as below.




In Snowflake, the above query works. Apart from this, we can use the keyword ILIKE. It allows you to filter the columns based on wildcards as below:






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




Comments

Popular posts from this blog

Snowflake Vs MS-SQL - Series

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

Snowflake Vs MS-SQL - Part 75 - String Length and Trimmed Length