Advertisements
Advertisements
प्रश्न
What is the use of the INSTR() function in SQL?
विकल्प
To replace characters in a string
To find the length of a string
To find the position of a substring in a string
To extract characters from a string
MCQ
Advertisements
उत्तर
To find the position of a substring in a string
Explanation:
The INSTR() function in SQL returns the position (index) of the first occurrence of a specified substring within a given string.
SELECT INSTR('Database', 'a');
This returns 2, since the first 'a' appears at position 2.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
