I have searched this question on stackoverflow but most of the questions are a little deeper than what I want. Many questions are relating to finding the table that has the specific column name.
I am connected to the database through SSMS
. I have found the table that I want to search through by SELECT * FROM Item
. In the Item
table I want to search all of the field names (or name of the column) and select
the ones that contain a specific string 'Size'
. I thought something like this would work
Select * FROM Item WHERE column_name LIKE '%SIZE%'
It doesn't work though. How do I specify it to search through all of the column names to find the names that contain 'Size'?
Thanks.