日期:2014-05-17  浏览次数:21457 次

怎么让instr函数,不区分大小写?默认是区分大小写的
instr(原字符串,目标字符串,搜索位置,匹配次数)


select Instr('pPfdppf','PP',1,1) from dual


这个结果pP匹配PP,怎么得到1

------解决方案--------------------
select Instr(lower('pPfdppf'),lower('PP'),1,1) from dual;
------解决方案--------------------
把instr改成regexp_instr