I'm trying to make multiple like in the clause like this code but I need to shorten it because I have to repeat this code for several different conditions to create different tables. I have tried all of the solutions from here but somehow none of this works for me. I have also tried LIKE '[40101,40102,40104]%'
and LIKE '[40101-40102-40104]%'
but it did not work too. What should I do?
SELECT *
from table
WHERE column LIKE '40101%'
OR column LIKE '40102%'
OR column LIKE '40105%'