select sum(decode(sign(substr(to_char(code),1,3)-135),-1,1,0)) 小于135,
sum(decode(sign(substr(to_char(code),1,3)-135),-1,0,1)) 大于等于135
from yourtable
sum(decode(sign(substr(to_char(code),1,3)-135),-1,0,1)) 大于等于135
from yourtable
select
(select count(*) from yourtable where substr(code,1,3)<135) 小于135,
(select count(*) from yourtable where substr(code,1,3)>=135) 大于等于135
from dual;
where to_number(substr(code,1,3))<135
or to_number(substr(code,1,3))>=135
(select count(*) from yourtable where substr(code,1,3)<135) 小于135,
(select count(*) from yourtable where substr(code,1,3)>=135) 大于等于135
from dual;