English

Which MySQL string function is used to extract a substring from a given string based on a specified starting position and length? - Informatics Practices

Advertisements
Advertisements

Question

Which MySQL string function is used to extract a substring from a given string based on a specified starting position and length? 

Options

  • SUBSTRING_INDEX()

  • LENGTH()

  • MID()

  • TRIM()

MCQ

Solution

MID()

Explanation:

The syntax of the MID() function: 

MID(string, start_position, length)

shaalaa.com
  Is there an error in this question or solution?
2023-2024 (February) Set 4
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×