|
INTERVIEW QUESTIONS
ORACLE
SQL PLUS
DETAILS
Question: Difference between SUBSTR and INSTR ?
Answer: 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.
|
|
|
Category |
SQL Plus Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.3) By 6681 users |
Added on |
10/27/2009 |
Views |
68945 |
Rate it! |
|
|
Question:
Difference between SUBSTR and INSTR ?
Answer:
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. 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.
|
|
Related Questions |
View Answer |
|
Explain UNION,MINUS,UNION ALL, INTERSECT ?
|
View Answer
|
|
What is ROWID ?
|
View Answer
|
|
What is the fastest way of accessing a row in a table ?
|
View Answer
|
|
What is an Integrity Constraint ?
|
View Answer
|
|
What is Referential Integrity ?
|
View Answer
|
|
What are the usage of SAVEPOINTS ?
|
View Answer
|
|
What is ON DELETE CASCADE ?
|
View Answer
|
|
What are the data types allowed in a table ?
|
View Answer
|
|
What is difference between CHAR and VARCHAR2 ? What is the maximum SIZE allowed for each type ?
|
View Answer
|
|
How many LONG columns are allowed in a table ? Is it possible to use LONG columns in WHERE clause or ORDER BY ?
|
View Answer
|
|
What are the pre requisites ?
|
View Answer
|
|
Where the integrity constraints are stored in Data Dictionary ?
|
View Answer
|
|
How will you a activate/deactivate integrity constraints ?
|
View Answer
|
|
If an unique key constraint on DATE column is created, will it validate the rows that are inserted with SYSDATE ?
|
View Answer
|
|
What is a database link ?
|
View Answer
|
|
How to access the current value and next value from a sequence ? Is it possible to access the current value in a session before accessing next value ?
|
View Answer
|
|
What is CYCLE/NO CYCLE in a Sequence ?
|
View Answer
|
|
What are the advantages of VIEW ?
|
View Answer
|
|
Can a view be updated/inserted/deleted? If Yes under what conditions ?
|
View Answer
|
|
If a View on a single base table is manipulated will the changes be reflected on the base table ?
|
View Answer
|