Welcome to Questionaries, where you can ask questions and receive answers from other members of the community.

Let us know at info@questionaries.org

What is difference between SUBSTR and INSTR?

5 like 0 dislike
What is difference between SUBSTR and INSTR?
asked 1 year ago by marck_don (191,010 points)

1 Answer

1 like 0 dislike
 
Best 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 '-')
answered 1 year ago by daneim (127,080 points)

Related questions

4 like 0 dislike
1 answer
4 like 0 dislike
2 answers