Q. The string function that returns the index of the first occurrence of substring is . . . . . . . .

  • (A) INSERT()
  • (B) INSTR()
  • (C) INSTRING()
  • (D) INFSTR()
πŸ’¬ Discuss
βœ… 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).
Explanation by: Ritu Nagar
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).

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
116
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Ritu Nagar
Publisher
πŸ“ˆ
88%
Success Rate