Hi all,
I would like to store multiple search strings values into table or variable so I can maintain them dynamically.
Then I am going to parse them using like any.
codes are like below
Then I store the '%wool%','%test%' as a single record so I put the search strings values into table_search and it throws syntax error as per codes below
Please help me how to resolve this.
Thank you,
I would like to store multiple search strings values into table or variable so I can maintain them dynamically.
Then I am going to parse them using like any.
codes are like below
Code:
-- this is expected codes which is working
select top 10 *
from table_main pr, table_search ms
where pr.name like any ('%wool%','%test%');
Then I store the '%wool%','%test%' as a single record so I put the search strings values into table_search and it throws syntax error as per codes below
Code:
-- syntax error
select top 10 *
from table_main pr, table_search ms
where pr.name like any (ms.stringname);
Please help me how to resolve this.
Thank you,