sELECT * FROM TABLE WHERE FIELD LIKE '%12%'
cast(@num as varchar(100)) like '%12%'
select * from table1 where cast(num as varchar(50)) like '%12%'