Que tal usar uma substring com IN. select * from tablename where substring(column,1,4) IN ('M510','M615','M515','M612')