INSTR2
Example
Section titled “Example”SELECT INSTR2('Hello World','o') AS LocationFROM dual;Output
Section titled “Output”LOCATION---------- 5Explanation
Section titled “Explanation”INSTR2 function in Oracle returns the position of the 2nd occurrence of a substring. In the provided example, we look for the position of the ‘o’ letter in the string “Hello World”. As we can see in the output, the position is 5.