具有通配符的patindex和instr函数的oracle等价物

具有通配符的patindex和instr函数的oracle等价物,oracle,Oracle,是否存在与oracle相当的patindex?根据我的搜索,唯一接近patindex的函数是oracle的instr函数,但它不支持通配符 以下查询的oracle等价物是什么 select patindex('%[^0]%','00194505022') 编辑:我发现regexp\u instr具有与patindex相似的功能,有一个regexp\u instr使用标准正则表达式语法进行模式匹配 select regexp_instr('00194505022','[^0].*') from

是否存在与oracle相当的
patindex
?根据我的搜索,唯一接近patindex的函数是oracle的
instr
函数,但它不支持通配符

以下查询的oracle等价物是什么

select patindex('%[^0]%','00194505022') 

编辑:我发现
regexp\u instr
具有与
patindex

相似的功能,有一个regexp\u instr使用标准正则表达式语法进行模式匹配

select regexp_instr('00194505022','[^0].*') from dual;