CBSE Class 12 Informatics Practices Question 28 of 81

MySQL Functions — Question 10

Back to all questions
10
Question

Question 10

What will be printed by the given query ?

SELECT LENGTH("WINNER");
  1. 7
  2. 6
  3. 8
  4. 9
Answer

6

Reason — The LENGTH() function in MySQL returns the length of the string specified as its argument in characters. In the given query, the string "WINNER" has a length of 6 characters, so the LENGTH() function will return 6.