select * from tablea where isnumeric(a)=1 and a<'50'先用isnumeric(a)=1过滤出可以转换为数字的数据,然后再判断<'50'即可
select * from 表where 字段 < '50' and len('字段') = 2