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 - Part 36 - SPLIT_TO_TABLE

Snowflake Vs MS-SQL - Part 63 - ON Clause & Cross Join

Snowflake Vs MS-SQL - Part 33 - INITCAP