mysql / oracle 的 instr( field, str ) 函数,其中 field 是输入的字符串,str 是要查找的字符串。 返回字符串 str 的位置,而不是索引,没找到就是 0
select instr('helloworld', 'lo') from dual; ---返回结果:4 select instr('helloworld', 'wo') from dual; ---返回结果:6