Q. The string function that returns the index of the first occurrence of substring is . . . . . . . .
β
Correct Answer: (B)
INSTR()
Explanation: INSTR(): The INSTR() function in MySQL is used to find the position of the first occurrence of a substring within a string. It returns the index (position) of the first character of the substring within the string. If the substring is not found, it returns 0. The syntax for the INSTR() function is INSTR(string, substring).