Oracle SQL Question:

Explain What is difference between SUBSTR and INSTR?

Tweet Share WhatsApp

Answer:

SUBSTR returns a specified portion of a string eg SUBSTR('BCDEF',4) output BCDE
INSTR provides character position in which a pattern is found in a string. eg INSTR('ABC-DC-F','-',2) output 7 (2nd occurence of '-')

Download SQL Oracle PDF Read All 16 SQL Oracle Questions
Previous QuestionNext Question
How to pass cursor variables in PL/SQL 2.2?Explain What is an UTL_FILE.What are different procedures and functions associated with it?