Informatics Practices

What will be printed by the given query ?

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

SQL Queries

1 Like

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.

Answered By

1 Like


Related Questions