DEVFYI - Developer Resource - FYI

Difference between SUBSTR and INSTR ?

ORACLE Interview Questions and Answers (Part 5)


(Continued from previous question...)

853. Difference between SUBSTR and INSTR ?

INSTR (String1,String2(n,(m)),INSTR returns the position of the mth occurrence of the string 2 instring1. The search begins from nth position of string1.SUBSTR (String1 n,m)SUBSTR returns a character string of size m in string1, starting from nth position of string1.

(Continued on next question...)

Other Interview Questions