📜  oracle 字符索引 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:19.205000             🧑  作者: Mango

代码示例1
-- EXAMPLE
select 
    '0004V0' as TESTER
    , INSTR('0004V0','V') -- OUTPUT: 5
    , INSTR('0004V0','0') -- OUTPUT: 1
    , INSTR('0004V0','0',4) -- OUTPUT: 6
from DUAL;

-- SYNTAX
INSTR(/*Main string*/, /*substring*/, /*start index*/)