Skip to main contentSkip to solution

To return the number of characters in a specified string, the correct syntax is _____.

Solution

✅ Correct Option: 1

LENGTH() is the MySQL string function that returns the length of a string, so SELECT LENGTH("Information"); returns 11.


Option 2: SIZE() is not a MySQL string function.

Option 3: COUNT() is an aggregate function that counts rows or non-NULL values in a column, not characters in a string.

Option 4: ALL is a keyword used with SELECT or comparison subqueries, not a function.

LENGTH() counts bytes, while CHAR_LENGTH() counts characters. For plain English text like "Information" the two give the same result.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question