select * from 表 where 列=3 or (列>0 and 列<=10