|
INTERVIEW QUESTIONS
DATABASE
SQL
DETAILS
Question: Difference between SUBSTR and INSTR?
Answer: INSTR (String1, String2 (n, (m)), INSTR returns the position of the m-th occurrence of the string 2 in string1. The search begins from nth position of string1. SUBSTR (String1 n, m) SUBSTR returns a character string of size m in string1, starting from n-th position of string1.
|
|
|
Category |
SQL Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.2) By 8400 users |
Added on |
9/14/2014 |
Views |
66268 |
Rate it! |
|
|
Question:
Difference between SUBSTR and INSTR?
Answer:
INSTR (String1, String2 (n, (m)), INSTR returns the position of the m-th occurrence of the string 2 in string1. The search begins from nth position of string1. SUBSTR (String1 n, m) SUBSTR returns a character string of size m in string1, starting from n-th position of string1. Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.
View All SQL Interview Questions & Answers - Exam Mode /
Learning Mode
|