1-- EXAMPLE
2select
3 '0004V0' as TESTER_STRING
4 , CHARINDEX('V','0004V0') -- OUTPUT: 5
5 , CHARINDEX('0','0004V0') -- OUTPUT: 1
6 , CHARINDEX('0','0004V0',4) -- OUTPUT: 6
7from DUAL;
8
9-- SYNTAX
10CHARINDEX(/*substring*/, /*Main string*/, /*start index*/)