Using SQL LIKE and IN together

How about using a substring with IN.

select * from tablename where substring(column,1,4) IN ('M510','M615','M515','M612')

Leave a Comment