substr
好instr
两个的用法。
实现你说的方法可以:
select
substr('21806182',
1,length('21806182')
-
instr('',
reverse('21806182')))
from
(select
from
t_base_ipaddressinfo
where
'21806182'
between
startip
and
endip)
t
where
startip
=
substr('21806182',
1,length('21806182')
-
instr('',
reverse('21806182')))
||
substr(startip,
instr('',
reverse(startip)))
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)