What is difference between SUBSTR and INSTR?



What is difference between SUBSTR and INSTR?..

Answer / parthasarathi

substr is used to get part of a string, instr is used to get particular string's position.

syntax of substr:-

substr(string,from which character we want,[how many characters we want])

syntax of instr:-

instr(string,'character')

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Oracle General Interview Questions

2. Display the post code and the total number of purchase orders placed with creditors in that post code.

0 Answers   Wipro,


Explain how you would restore a database using RMAN to Point in Time?

0 Answers  


How can return max date row A b c d e 1 2 1-mar-09 5 10 1 2 10-mar-09 5 10 Only using oracle predefined function. Not user defined. Output:-- A b c d e 1 2 10-mar-09 5 10

2 Answers  


What is oracle sid?

0 Answers  


How to use in conditions in oracle?

0 Answers  


What is the usage of synonyms?

0 Answers  


Difference between an implicit & an explicit cursor.?

2 Answers  


How to test null values?

0 Answers  


How do you recover a datafile that has not been physically been backed up since its creation and has been deleted. Provide syntax example.

1 Answers  


How to count duplicated values in a column in oracle?

0 Answers  


How do we get field detail of a table?

0 Answers  


Give syntax for SQL and ORACLE joins.

0 Answers   TCS,


Categories
  • Oracle General Interview Questions Oracle General (1808)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)